That's not what the docs say, and that's not what the error message says. (It mentions "Node", not "NodeSet".)
The error message is actually spot on. The OP is trying to call the "exists" method of a node, but nodes don't have an "exists" method. The correct usage is
$tree->exists('path', $node)
In reply to Re^2: XML::XPath Question
by ikegami
in thread XML::XPath Question
by TendulkarIsGod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |