title: Java XPATH select only the first element of child
body: <p>My sample input XML is:</p>
  
  <pre><code>&lt;root&gt;
      &lt;a&gt;
      &lt;b&gt;
      &lt;c&gt;item1&lt;/c&gt;
      &lt;d&gt;item2&lt;/d&gt;
      &lt;e&gt;item3&lt;/e&gt; 
      &lt;/b&gt;
      &lt;/a&gt;
      &lt;a&gt;
      &lt;b&gt;
      &lt;c&gt;item4&lt;/c&gt;
      &lt;c&gt;item5&lt;/c&gt;
      &lt;e&gt;item6&lt;/e&gt;   
      &lt;/b&gt;        
      &lt;/a&gt;
      &lt;/root&gt;
  </code></pre>
  
  <p>I am suppose to select all the first occurrence of node c.
  The output should be item1 and item4.
  when I am using /root/a/b/c it returns item1,item4 and item5.</p>