Looking at w3schools for xPath (feel free to give me other references), you can select all the children of bookstore
, but what if I wanted to only select the second book element? How can I do that?
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<title lang="eng">Harry Potter</title>
<price>29.99</price>
</book>
<book>
<title lang="eng">Learning XML</title>
<price>39.95</price>
</book>
</bookstore>