There's more than one way to do things | |
PerlMonks |
Re^2: XML::LibXML findnodes and namespacesby shamu (Acolyte) |
on Mar 29, 2007 at 20:47 UTC ( [id://607353]=note: print w/replies, xml ) | Need Help?? |
What I'm really trying to do is use an XPath in a findnodes call without any concern or regard for namespaces. Using XML::LibXML::XPathContext, I was able to create a virtual mapping to my fooResponse element...I was pointing to the wrong node. I still would like to be able to use an XPath like: fooResponse/info/fooTransaction/transactionDetail/histFile:transactionSummary/summary:PacManScore...without having to traverse the DOM and create/update namespaces along the way. I have a big list of XPath elements that I want to use with findnodes, hopefully without having to modify them to support "local-name" and such. Is what I'm asking that difficult to accomplish?
In Section
Seekers of Perl Wisdom
|
|