Forum Discussion

PrashantSavalia's avatar
11 years ago

XQuery Match Assertion for Multiple Values

I am having trouble with creating an XQuery assertion. When I check for multiple values, the code seems to be concatenating the expected results rather than interpreting it as an OR statement. Perhaps its my syntax, but I couldn't find anything that gave me the specific syntax I was looking for.

I am using the following in the XQuery Expression:

declare namespace soapenv='somesite';
declare namespace acc='anothersite';

/soapenv:Envelope/soapenv:Body/acc:ErrorResponse/acc:ResultCode


and this in my Expected Result:

11118 | 11119

It seems to think I am looking for "11118 | 11119" instead of parsing one or the other. Am I missing something?
No RepliesBe the first to reply