Home >Online Product Documentation >Table of Contents >Precedence of Query Operators
The precedence of query operators varies for XPath 1.0 and XPath 2.0, as shown in the following tables. In these tables, operators are listed in order of precedence, with highest precedence being first; operators in a given row have the same precedence.
( )
[ ]
-
*, div, mod
+, -
= != < <= > >=
|
not
and
or
,
instance of
treat
castable
cast
eg, ne, lt, le, gt, ge, =, !=, <, <=, >, >=, is, <<, >>
to
*, div, idiv, mod
unary -, unary +
union, |
intersect, except
/, //