XPath Axes

wishwing7
2 min readJan 14, 2019

--

An axis represents a relationship to the context (current) node, and is used to locate nodes relative to that node on the tree.

e.g.

Each step is evaluated against the nodes in the current node-set.

A step consists of:

  • an axis (defines the tree-relationship between the selected nodes and the current node)
  • a node-test (identifies a node within an axis)
  • zero or more predicates (to further refine the selected node-set)
  • Syntax :axisname::nodetest[predicate]

--

--

No responses yet