title: XQuery : get only one XML element among many with the same name
body: <p>I'm using this URL to get information of a given location (with latitude/longitude) :</p>
  
  <blockquote>
    <p><a href="http://maps.googleapis.com/maps/api/geocode/xml?latlng=48.845909,2.341762&amp;sensor=true" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/xml?latlng=48.845909,2.341762&amp;sensor=true</a></p>
  </blockquote>
  
  <p>What I want to do is to get the basic address of this place (address, town). So I tried this XQuery request :</p>
  
  <pre><code>let $lat := 48.845909,
  $lng := 2.341762,
  $url := concat('http://maps.googleapis.com/maps/api/geocode/xml?latlng=',$lat,',',$lng,'&amp;#38;sensor=true'),
  $resp := doc($url)
  return $resp//result/formatted_address/string()
  </code></pre>
  
  <p>But with this I get all the <strong>formatted_address</strong> elements of the XML result, so here I get :</p>
  
  <pre><code>12 Rue Royer-Collard, 75005 Paris, France
  Val-de-Grâce, Paris, France
  75005 Paris, France
  5th arrondissement of Paris, Paris, France
  Paris, France
  Paris, France
  Île-de-France, France
  France
  </code></pre>
  
  <p>And I only want the first line. What should I do ?</p>