Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: XML::LibXML drives me to drinkingby tunafish (Beadle) |
on Oct 23, 2016 at 03:59 UTC ( [id://1174535]=note: print w/replies, xml ) | Need Help?? |
Wait, are you saying I need to create a new XML::LibXML::XPathContext object for each node as I loop through them?! I modified my code in the following way:
And bingo!
Oy vey! Wouldn't it be much more convenient if a XML::LibXML::XPathContext object calling the findnodes() method returned another XML::LibXML::XPathContext object, rather than a XML::LibXML::Node or XML::LibXML::Element object? I haven't pulled this much hair in one day for a coding-related reason IN YEARS.
In Section
Seekers of Perl Wisdom
|
|