Xpath Different Types Of Axis

xpath

// XPath - Different types of axis:

1. The Ancestor axis: All element nodes that contain the context node; the 
   parent node, the parent's parent, the parent's parent's parent, etc., up 
   through the root node in reverse document order.

2. The Following-sibling axis: All nodes that follow the context node and are 
   contained in the same parent element node in document order.

3. The Preceding-sibling axis: All nodes that precede the context node and are 
   contained in the same parent element node in the reverse document order.

4. The Following axis: All nodes that follow the end of the context node in 
   document order.

5. The Preceding axis: All nodes that precede the start of the context node in 
   reverse document order.

6. The Namespace axis: All namespaces in scope on the context node, whether 
   declared on the context node or one of its ancestors.

7. The Descendant axis: All the context node's descendants, not including the 
   context node itself.

8. The Ancestor-or-self axis: All the context node's ancestors and the context 
   node itself.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License