The XPath bookstore/book[1] selects the first book node under bookstore.

How can I select the first node that matches a more complicated condition, e.g. the first node that matches /bookstore/book[@location='US']

9 Answers
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *