XPath defines operators and functions on nodes. An XPath expression returns either a node-set, a string, a Boolean, or a number.