Forum Discussion

npdavenport's avatar
npdavenport
New Contributor
14 years ago

A Bug With XQuery Assertion In 4.5.0?

I am attempting to match up some XML data using XQuery. The assertion below passes every time regardless of the value in the expected results.

declare namespace ns1='http://someurl';
declare namespace soapenv='http://www.w3.org/2003/05/soap-envelope';

<status>
{
for $z in //ns1:results
where matches($z/ns1:name/text(), 'value')

return
$z/ns1:value/text()
}
</status>

If the expected result is <status>1</status> and the actual value in ns1:value is 0, this passes when it should fail. The same assertion passes in SoapUI version 3.6.
No RepliesBe the first to reply