List Info

Thread: - Question about getNodeName




- Question about getNodeName
user name
2006-06-13 20:22:33
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-bounceslistserv.ActiveState.com
[mailto:perl-xml-bounceslistserv.ActiveState.com]
On Behalf Of Mesdaq,
Ali
Sent: Tuesday, June 13, 2006 11:27 AM
To: perl-xmllistserv.ActiveState.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-XMLlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

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

about | contact  Other archives ( Real Estate discussion Medical topics )