in reply to Re: XPath search qn
in thread XPath search qn

I'd stick to attributes too if I had a choice! :) But your code is useful. Thanks. However, what if I want to do something like a wildcard search on 'v1.3' or 'v1.31' etc. ? I tried :
my $nodes = $xp->find(q{/files/file/userprop/nameprop[text()='Version' +]/../valueprop[text()='v1.3|v1.31']/ancestor::file});
AND
my $nodes = $xp->find(q{/files/file/userprop/nameprop[text()='Version' +]/../valueprop[text()='v1.3*']/ancestor::file});
Both did not work. Is it also possible to do a range search ? Like substr(text(),1,2) > 1.3 to get all version greater than 'v1.3'. Or even a date search ?