//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
In reply to Re^2: Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by ikegami
in thread Searching subtrees with XML::LibXML::XPathContext always searches whole document - why?
by nneul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |