I'd like to select a node if it has class="something"
or class="else"
. How can I do that? XPath docs don't seem to contain any easy to find boolean or
equivalent.
views:
25answers:
2
+3
A:
The or
operateor is named or
and you would use it like //div[@class='something' or @class='else']
Ken Bloom
2010-07-19 01:31:23
A:
It is just or
-- not OR or Or.
XPath is case sensitive -- don't forget.
Dimitre Novatchev
2010-07-19 04:53:57