Paul Clapham wrote:Ah, I see. But that's nothing to do with "or", which doesn't even feature in the problem. It's all to do with the fact that all of the XPath expressions posted so far have had the same problem, namely a predicate which doesn't modify anything. Try this instead:
it gives very strange results.. no exception though.
Basically I want to get some boolean type result showing "is it true that there is a data element whose child element widget (assuming only one child element called widget) has value of "123" ? I don't like the "eval" method which always returns an object. How do you come up with a Xpath and returns a true/false kind result to me ?