title: How to find all nodes of a specific type in XPath
body: <p>Lets say i have the following form data instance in my view.xml:</p>
  
  <pre><code>&lt;xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
  xmlns:exforms="http://www.exforms.org/exf/1-0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;xhtml:head&gt;
  &lt;xforms:instance id="instanceData"&gt;
      &lt;form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;fruits&gt;
       &lt;fruit&gt;
          &lt;fruit-name&gt;Mango&lt;/fruit-name&gt;
       &lt;/fruit&gt;
       &lt;fruit&gt;
          &lt;fruit-name&gt;Apple&lt;/fruit-name&gt;
       &lt;/fruit&gt;
       &lt;fruit&gt;
          &lt;fruit-name&gt;Banana&lt;/fruit-name&gt;
       &lt;/fruit&gt;
  &lt;/fruits&gt;
  &lt;/form&gt;
  &lt;/xforms:instance&gt;
  &lt;/xhtml:head&gt;
  </code></pre>
  
  <p>I want to select all the fruit names from the above instance.
  I tried the following ways but it always selects the first fruit.</p>
  
  <pre><code>instance('instanceData')/fruits/fruit[*]/fruit-name
  instance('instanceData')/fruits/fruit/fruit-name
  instance('instanceData')/fruits/fruit[position()&gt;0]/fruit-name
  </code></pre>
  
  <p>Please provide a way to overcome this in XPATH</p>