title: XPath - Search for String in XML Document With Identical Names
body: <p>XPath noob here again. I am getting this response from a Web Server. As you can see, all  elements are true. </p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com"&gt;
     &lt;soapenv:Header&gt;
        &lt;LimitInfoHeader&gt;
           &lt;limitInfo&gt;
              &lt;current&gt;284&lt;/current&gt;
              &lt;limit&gt;5000000&lt;/limit&gt;
              &lt;type&gt;API REQUESTS&lt;/type&gt;
           &lt;/limitInfo&gt;
        &lt;/LimitInfoHeader&gt;
     &lt;/soapenv:Header&gt;
     &lt;soapenv:Body&gt;
        &lt;createResponse&gt;
           &lt;result&gt;
              &lt;id&gt;a05e00000042oZ1AAI&lt;/id&gt;
              &lt;success&gt;true&lt;/success&gt;
           &lt;/result&gt;
           &lt;result&gt;
              &lt;id&gt;a06e0000008TWdlAAG&lt;/id&gt;
              &lt;success&gt;true&lt;/success&gt;
           &lt;/result&gt;
           &lt;result&gt;
              &lt;id&gt;a06e0000008TWdmAAG&lt;/id&gt;
              &lt;success&gt;true&lt;/success&gt;
           &lt;/result&gt;
        &lt;/createResponse&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>My question is, how would I be able to write a function, what would return a boolean variable based on if one or more of the success variables are false. Sort of like an AND gate.</p>
  
  <p>I currently have: </p>
  
  <pre><code>//[contains(text(),'false')])
  </code></pre>
  
  <p>But this always returns false.</p>
  
  <p>Any help would be appreciated.</p>