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
RE: [BULK] - Question about getNodeName
by Ali Mesdaq other posts by this author
Jun 13 2006 1:35PM messages near this date
view in the new Beta List Site
Re: DTD to web form | Question about getNodeName
& XSLT Ignore this question. I just found out it has to do with the type of
node and can be filtered based on getNodeType != 3

-----Original Message-----
From: perl-xml-bounces@[...].com
[mailto:perl-xml-bounces@[...].com] On Behalf Of Mesdaq,
Ali
Sent: Tuesday, June 13, 2006 11:27 AM
To: perl-xml@[...].com
Subject: [BULK] - Question about getNodeName

When using DOM and getNodeName I get the name and "#text" returned. Why
is #text returned and how can I have only the name returned? 

my $root = $doc-> getDocumentElement();
my @installinfo = $root-> getChildNodes();
foreach my $run (@installinfo)
{
        print $run-> getNodeName(), "\n";
}

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

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