title: Search Xpath with its value in XML Documents and Get Document URI From Marklogic
body: <p>I have XML stored in MarkLogic as mentioned below </p>
  
  <pre><code>&lt;testData&gt;
    &lt;datatypes&gt;
      &lt;datatypename&gt;datatypename1&lt;/datatypename&gt;
      &lt;datatype&gt;datatype1&lt;/datatype&gt;
    &lt;/datatypes&gt;
    &lt;datavalue&gt;
      &lt;code&gt;code1&lt;/code&gt;
      &lt;value&gt;value1&lt;/value&gt;
    &lt;/datavalue&gt;
    &lt;datavalue&gt;
      &lt;code&gt;code2&lt;/code&gt;
      &lt;value&gt;value2&lt;/value&gt;
    &lt;/datavalue&gt;
    &lt;datavalue&gt;
      &lt;code&gt;code3&lt;/code&gt;
      &lt;value&gt;value3&lt;/value&gt;
    &lt;/datavalue&gt;
  &lt;/testData&gt;
  </code></pre>
  
  <p>and there is Possibility that Above values and document structure may Appear in another XML but with different URI.</p>
  
  <p>So My Requirement is,  I need all the document URIs from the MarkLogic which contains <code>/testData/datatypes/datatypename</code> as exact xpath and its exact value as <code>datatypename1</code></p>