![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: XML::DOM::Parserby rpc (Monk) |
on Mar 08, 2001 at 00:17 UTC ( #62815=note: print w/replies, xml ) | Need Help?? |
I think you're trying to print the wrong Text elements. There appears to be several Text element children of the root node, these are not what you want to print. The below XML is what I tested:
And parsed it with the script:
The actual Text nodes you want are contained within Element children of the root node. I don't think you're traversing deep enough into the DOM tree.
In Section
Seekers of Perl Wisdom
|
|