I haven't checked thoroughly your code, but I'd be willing to bet that the problem is that //apps:login should be .//apps:login. With the . you start from the current node, without it you start from the root of the document. That's a common mistake with XPath. Am I right?
In reply to Re: Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by mirod
in thread Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by nneul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |