XPath is a language for finding information in XML documents.

XPath syntax syntax

XPath uses path expressions to select nodes or sets of nodes in an XML document. Nodes are selected along paths or steps.

XPath syntax example

<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
<book>
  <title>Harry Potter</title>
  <price>29.99</price>
</book>
<book>
  <title>Learning XML</title>
  <price>39.95</price>
</book>
</bookstore>