ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved