title: Xpath - Text Contains multiple values
body: <p>I need an <code>xpath</code> which will return the <strong>OutletActivityId</strong> where the corresponding <strong>OutletName and ActivityName have specific values</strong>. </p>
  
  <p>An image of the <code>xml</code> response is attached below.</p>
  
  <p><em>I have tried <code>xpath</code> queries like below but not getting it to work yet</em></p>
  
  <pre class="lang-none prettyprint-override"><code>declare namespace ref='http://api.socialservices.gov.au/ebo/DataCollection/Organisation';
  //ref:OutletName[contains(text(),'${#Project#u_OutletName}') and ref:ActivityName[contains(text(),'${#Project#u_ActivityName}')]/../ref:OutletActivityId
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uoCTJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uoCTJ.png" alt="enter image description here"></a></p>