Node Test

Contact Us or call 1-877-932-8228
Node Test

Node Test

axis::node_test[predicate]

Each location step has a node test, which provides the name or class of the nodes to reference. The processor looks through the nodes at the specified axis and returns a nodeset including all nodes with the name or class specified in the node test. Some examples are shown below:

Node Test Examples
Example Description
/ Indicates the root, which is one level above the document element.
FirstName Indicates a FirstName node. Depending on the axis, this could be an element or an attribute.
text() Indicates a text node.
comment() Indicates a comment node.
processing-instruction() Indicates a processing instruction.
Next