Forum Discussion
Freddy
12 years agoOccasional Contributor
Ok, I got as far now as using an XPath Match in SoapUI in which I am reading a value from the xml response.
Basically that looks like:
declare namespace ns1='...namespace...';
ns1:Node1[1]/ns1:SubNode[1]/ns1:ElementValue[1]
This returns the desired value. Final step is that I would like to catch this value into a variable which I would then like to compare to a project property.
I have been trying to define variables in my XPath Match but have not been succesful so far.
Could anyone please give me a short example on how to do this?
Thanks again a lot in advance!
Basically that looks like:
declare namespace ns1='...namespace...';
ns1:Node1[1]/ns1:SubNode[1]/ns1:ElementValue[1]
This returns the desired value. Final step is that I would like to catch this value into a variable which I would then like to compare to a project property.
I have been trying to define variables in my XPath Match but have not been succesful so far.
Could anyone please give me a short example on how to do this?
Thanks again a lot in advance!