title: How to select the first element with a specific attribute using XPath
body: <p>The XPath <code>bookstore/book[1]</code> selects the first book node under <code>bookstore</code>.</p>
  
  <p>How can I select the first node that matches a more complicated condition, e.g. the first node that matches <code>/bookstore/book[@location='US']</code></p>