in reply to Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by ikegami (Patriarch) on Feb 08, 2010 at 16:47 UTC | |
by nneul (Novice) on Feb 08, 2010 at 16:54 UTC |