An axis defines a node-set relative to the current node. AxisNameResult ancestor Selects all ancestors (parent, grandparent, etc.) of the current node ancestor-or-self Selects all ancestors (parent, grandparent, etc.) of the current node and the current node itself attribute Selects all attributes of the current node child Selects all children of the current node descendant Selects all descendan..
OperatorDescriptionExampleReturn value | Computes two node-sets //book | //cd Returns a node-set with all book and cd elements + Addition 6 + 4 10 - Subtraction 6 - 4 2 * Multiplication 6 * 4 24 div Division 8 div 4 2 = Equal price=9.80 true if price is 9.80 false if price is 9.90 != Not equal price!=9.80 true if price is 9.90 false if price is 9.80 =9.80 true if price is 9.90 false if price is ..
Accessor Functions NameDescription fn:node-name(node) Returns the node-name of the argument node fn:nilled(node) Returns a Boolean value indicating whether the argument node is nilled fn:data(item.item,...) Takes a sequence of items and returns a sequence of atomic values fn:base-uri() fn:base-uri(node) Returns the value of the base-uri property of the current or specified node fn:document-uri(n..
Selecting NodesXPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below: ExpressionDescription nodename Selects all child nodes of the named node / Selects from the root node // Selects nodes in the document from the current node that match the selection no matter where they are . Selects ..
- Total
- Today
- Yesterday