in reply to Re: Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
in thread Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
//apps:login
is short for
/descendant::apps:login
Just like with directory paths, expressions starting with "/" start searching at the root. To look for descendants of the topic node, one must use a relative path such as
ordescendant::apps:login
.//apps:login
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by nneul (Novice) on Feb 08, 2010 at 16:54 UTC |