Question about selecting a child in xPath

willygroening

New Member
Looking at w3schools for xPath (feel free to give me other references), you can select all the children of \[code\]bookstore\[/code\], but what if I wanted to only select the second book element? How can I do that?\[code\]<?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>\[/code\]
 
Back
Top