in reply to Re: XML::LibXML::XPathContext findnodes() Question
in thread XML::LibXML::XPathContext findnodes() Question
I'm trying to test the existence of two separate elements.
Like /root && /root/element1. I want true if both exist, false if one exists.
The xpath can certainly be much better, but this is a simplified example from an xml-grep program I am working on.
I'm trying to add the functionality to test for the existence of 2 nodes separated by ' and '. I may need to use find() or findvalue() for these types of xpaths.
Thanks for your time!
Like /root && /root/element1. I want true if both exist, false if one exists.
The xpath can certainly be much better, but this is a simplified example from an xml-grep program I am working on.
I'm trying to add the functionality to test for the existence of 2 nodes separated by ' and '. I may need to use find() or findvalue() for these types of xpaths.
Thanks for your time!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: XML::LibXML::XPathContext findnodes() Question
by runrig (Abbot) on Dec 19, 2008 at 23:31 UTC | |
Re^3: XML::LibXML::XPathContext findnodes() Question
by roman (Monk) on Dec 20, 2008 at 10:00 UTC |
In Section
Seekers of Perl Wisdom