in reply to XML::LibXML + XML::LibXML::XPathContext: can this be simplified?

It works, but I find it ugly that one must pass the actual node and the root node. Any way to get around this? Are there other possible improvements?

Sure, see sub XML::LibXML::Node::F

  • Comment on Re: XML::LibXML + XML::LibXML::XPathContext: can this be simplified?