I have the following xml:
<myRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:ben”>
<myDefinition>
<name>Value1</name>
<version>Value2</version>
</myDefinition>
<myHeader>
<id>52452519-4765-4b68-b632-01913c3d3948</id>
<creationTime>2018-07-04T10:51:56</creationTime>
<target>
<myCode>value3</myCode>
</target>
</myHeader>
</myRequest>
I am looking to check the text between name element is 'Value1', text between version is 'Value2' and text between myCode is 'Value3'.
How can I check these values in a single xpath query?