in reply to Re: XML::XPath Question
in thread XML::XPath Question
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::XPath Question
by Corion (Patriarch) on Nov 10, 2010 at 20:30 UTC | |
by TendulkarIsGod (Acolyte) on Nov 10, 2010 at 20:33 UTC | |
by Corion (Patriarch) on Nov 10, 2010 at 20:40 UTC | |
by ikegami (Patriarch) on Nov 10, 2010 at 21:38 UTC | |
|
Re^3: XML::XPath Question
by TendulkarIsGod (Acolyte) on Nov 10, 2010 at 20:39 UTC |