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 listserv.ActiveState.com
[mailto:perl-xml-bounces listserv.ActiveState.com]
On Behalf Of Mesdaq,
Ali
Sent: Tuesday, June 13, 2006 11:27 AM
To: perl-xml listserv.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-XML listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-XML mailing list
Perl-XML listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|