There are five types of operators :
Arithmetic Operators : These include + (addition), – (subtraction), and *(multiplication).
Comparison Operators : These include =, >, >=, <=.
Logical Operators : these generally occur in a conditional statement such as “if” or “else.” They also return boolean values.
Text Operators : these operators are used to return text values, such as “text(), substring()”.
XPath Functions : These allow you to apply a function to the nodes that meet certain criteria. For example: length().