Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: XML::LibXML::XPathContext findnodes() Question

by roman (Monk)
on Dec 20, 2008 at 10:00 UTC ( #731742=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::LibXML::XPathContext findnodes() Question
in thread XML::LibXML::XPathContext findnodes() Question

You should probably use $doc->findvalue instead of findnodes because your XPath expression doesn't return a nodeset but boolean value.

warn $doc->findvalue('/root and /root/element1'), "\n"; warn $doc->findvalue('/root and /root/nosuch'), "\n";

yields:

true false

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://731742]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-01-28 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?