Package to include in order to use getLength function in XML::DOM parser
by Jaebin Lee other posts by this author
Nov 13 2006 4:12PM messages near this date
view in the new Beta List Site
Regarding "HTTP/1.1 500 Internal Server Error" while executing standalone script "UDDIregistry.pl"
|
Re: Package to include in order to use getLength function in XML::DOM parser
& XSLT Hi,
I'm just trying to use the getLength function off of a xml node, but
get an error when used it.
the error is saying: "can't call method "getLength" without a package
or object reference"
and this is part of my codes.
my @root = $doc-> getElementsByTagName("environmentConfig");
my $length = @root-> getLength;
my $sample = $doc-> getDocumentElement();
my $children = $sample-> getChildNodes();
print "\nThe root element is ", $sample-> getNodeName(), ".\n";
I think I'm using the getLength function in right way but could anyone
tell me if it is wrong? also is there an external package I should
include to be able to use this function?
Thank you.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jaebin Lee
Grant McLean
|