XPath Operators

A node-set, a string, a Boolean, or a number is returned by an XPath expression. The operators that we can use in XPath expressions are listed below:

|//book | //cdComputes two node-sets
+11 + 22Addition
22 – 11Subtraction
*11 * 22Multiplication
div22 div 11Division
!=price!=11.00Not equal
<price<11.00Less than
<=price<=11.00Less than or equal to
>price>11.00Greater than
>=price>=11.00Greater than or equal to
orprice=11.00 or price=22.00or
andprice>11.00 and price<22.00and
mod22 mod 10Modulus (division remainder)
Please Share