XPath: Select Sibling Nodes

1. Overview In this tutorial, we're going to look at selecting sibling nodes. The sibling axes include preceding-sibling:: and following-sibling::....

Continue Reading

XPath: Select Preceeding or Following Nodes

The preceding and following axes have the potential to select a large number of nodes, because they consider all nodes that come before (after) the...

Continue Reading

XPath: Select Parent or Ancestor Nodes

The parent axis (parent::) refers to the parent of the context node. The expression parent::X should not be confused with ../X. The former will pro...

Continue Reading

XPath: Select Child or Descendant Nodes

The child axis is the default axis in XPath. This means one does not need to use the child:: axis specification. One can reach deeper into the XML ...

Continue Reading