http://qs321.pair.com?node_id=607353


in reply to Re: XML::LibXML findnodes and namespaces
in thread XML::LibXML findnodes and namespaces

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?