title: I want return duplicate node with same text value in one xml file
body: <p>Below my xml:</p>
  
  <p>Filename: <strong>relation.xml</strong></p>
  
  <pre><code>    &lt;relations&gt;
  &lt;relation&gt;
  &lt;normativelyReferencedBy&gt;00-3880945351&lt;/normativelyReferencedBy&gt;
  &lt;normativelyReferencedBy&gt;BS EN 12899-1:2007&lt;/normativelyReferencedBy&gt;
  &lt;/relation&gt;
  &lt;relation&gt;
  &lt;normativelyReferencedBy&gt;00-3880945351&lt;/normativelyReferencedBy&gt;
  &lt;normativelyReferencedBy&gt;BS EN 12899-1:2007&lt;/normativelyReferencedBy&gt;
  &lt;/relation&gt;
  &lt;relation&gt;
  &lt;normativelyReferencedBy&gt;01-1012946847&lt;/normativelyReferencedBy&gt;
  &lt;normativelyReferencedBy&gt;BS EN 13291-2:2003&lt;/normativelyReferencedBy&gt;
  &lt;/relation&gt;
  &lt;/relations&gt;
  </code></pre>
  
  <p>In this xml first two nodes are same and text also same, so I want to return this with their file name as:
  I want to return through xquery in marklogic server.</p>
  
  <pre><code>Result:
  abc.xml
  &lt;relation&gt;
  &lt;normativelyReferencedBy&gt;00-3880945351&lt;/normativelyReferencedBy&gt;
  &lt;normativelyReferencedBy&gt;BS EN 12899-1:2007&lt;/normativelyReferencedBy&gt;
  &lt;/relation&gt;
  </code></pre>