title: XPath - retrieve multiple values from different paths based on same condition
body: <p>This is my XML</p>
  
  <pre><code>&lt;root&gt;
     &lt;entry id="1"&gt;
        &lt;value name="ID"&gt;11&lt;/value&gt;
        &lt;value name="ENABLE"&gt;0&lt;/value&gt;
        &lt;value name="NAME"&gt;USER1&lt;/value&gt;
     &lt;/entry&gt;
     &lt;entry id="2"&gt;
        &lt;value name="ID"&gt;11&lt;/value&gt;
        &lt;value name="ENABLE"&gt;0&lt;/value&gt;
        &lt;value name="NAME"&gt;USER2&lt;/value&gt;
     &lt;/entry&gt;
     &lt;entry id="3"&gt;
        &lt;value name="ID"&gt;12&lt;/value&gt;
        &lt;value name="ENABLE"&gt;0&lt;/value&gt;
        &lt;value name="NAME"&gt;USER1&lt;/value&gt;
     &lt;/entry&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>I need an XPath query to retrieve all the names whose <code>id</code> is <strong>11</strong>.</p>
  
  <p>I tried:</p>
  
  <pre><code>String xpath = "/root/entry/value[@name=ID/text()='11']/value[@name='NAME']";
  String xpath = "/root/entry/value[@name=ID/text()='11']/NAME";
  </code></pre>
  
  <p>Can someone tell me what is wrong in my query?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Expected Output:</p>
  
  <pre><code>USER1
  USER2
  </code></pre>
  
  <p>both these have ID = 11</p>