XML : Xpath - Text Contains multiple values

I need an xpath which will return the OutletActivityId where the corresponding OutletName and ActivityName have specific values. an image of the xml response is attached

I have tried xpath queries like below but not getting it to work yet

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

enter image description here

No comments:

Post a Comment