tags:

views:

25

answers:

2

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.

+3  A: 

The or operateor is named or and you would use it like //div[@class='something' or @class='else']

Ken Bloom
A: 

It is just or -- not OR or Or.

XPath is case sensitive -- don't forget.

Dimitre Novatchev