XPath noob here again. I am getting this response from a Web Server. As you can see, all elements are true.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com">
<soapenv:Header>
<LimitInfoHeader>
<limitInfo>
<current>284</current>
<limit>5000000</limit>
<type>API REQUESTS</type>
</limitInfo>
</LimitInfoHeader>
</soapenv:Header>
<soapenv:Body>
<createResponse>
<result>
<id>a05e00000042oZ1AAI</id>
<success>true</success>
</result>
<result>
<id>a06e0000008TWdlAAG</id>
<success>true</success>
</result>
<result>
<id>a06e0000008TWdmAAG</id>
<success>true</success>
</result>
</createResponse>
</soapenv:Body>
</soapenv:Envelope>
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.
I currently have:
//[contains(text(),'false')])
But this always returns false.
Any help would be appreciated.