title: XPATH select second item (not child)
body: <p>I was trying to get only the first element:</p>
  <pre><code>&lt;xml&gt;
    &lt;title&gt;xpath.playground.fontoxml.com&lt;/title&gt;
    &lt;summary&gt;This is a learning tool for XML, XPath and XQuery.&lt;/summary&gt;
    &lt;tips&gt;
      &lt;tip id='1' name='hello'&gt;You can edit everything on the left&lt;/tip&gt;
      &lt;tip id='examples'&gt;You can access more examples from a menu in the top right&lt;/tip&gt;
      &lt;tip id='permalink'&gt;Another button there lets you share your test using an URL&lt;/tip&gt;
    &lt;/tips&gt;
    &lt;tips&gt;
      &lt;tip id='2' name='hello'&gt;You can edit everything on the left&lt;/tip&gt;
      &lt;tip id='examples'&gt;You can access more examples from a menu in the top right&lt;/tip&gt;
      &lt;tip id='permalink'&gt;Another button there lets you share your test using an URL&lt;/tip&gt;
    &lt;/tips&gt;
  &lt;/xml&gt;
  </code></pre>
  <p>This is the XPATH, im trying to get one element from all with name='hello'</p>
  <pre><code>//*[@name='hello'][1]
  </code></pre>
  <p>but it returns both <code>&lt;tip id='1' name='hello'&gt;</code> and <code>&lt;tip id='2' name='hello'&gt;</code></p>
  <p>my expectation was <code>//*[@name='hello'][1]</code> returns the element with id=1 and <code>//*[@name='hello'][2]</code> returns the element with id=2</p>
  <p>how do I get this result</p>