|
Home >Online Product Documentation >Table of Contents >Finding Multiple Nodes Finding Multiple NodesTo obtain several nodes in one operation, use the and or the or operator with the position() and last() functions. For example, the following query returns the first and the last author nodes in the current context: You can also specify a range of nodes. For example, the next query returns the second, third, and fourth author elements: To obtain a range of nodes, m to n, relative to the last node, use the following format: For example, the following query obtains the last five nodes in the current context: |