Skip to main content

XPath Operators

XPath defines operators and functions on nodes.

An XPath expression returns either a node-set, a string, a Boolean, or a number.

Classification of XPath Operators

XPath operators can be categorized in different category according to their property.

Operators/FunctionsDescription
Comparison OperatorsComparison operators to compare values.
Boolean OperatorsBoolean operators are used to check and, or & not functionalities.
Number Functions/OperatorsOperators/Functions on Numbers.
String FunctionsIt specifies various string functions.
Node Functions/OperatorsIt specifies various functions and operators acting on nodes.