What is XPath and how it is used?

XPath is W3C recommended language which can access nodes or node-sets of an XML document. In larg...

XPath axes

In XPath, X stands for nodes and path stands for the nodes from root which has to be passed to reach destination.  Axes of XPath define node set from the perspective of a star...

Node types in XPath 1.0

XPath 1.0 has nodetypes, where the nodes are the information derived from the document. There are seven type of nodes and are all described below. The nodes have a string value whi...

XPath syntax

XPath uses path expressions to select nodes or node sets in an XML document. An XPath location path has one or more location steps, each separated by ‘/&rsq...

Accessing elements with XPath

The XPath is primarily used to access elements and

Accessing attributes with XPath

Selecting an attribute with XPath can be done using attribute:: or @. Example of accessing attributes with XPath ...

XPath functions

XPath defines standard functions which can be used in creating expressions. The functions can be...