Contributions
Re: Getting error for xQuery
Thanks Paul. I also fount that out yesterday. Here's a snippet of how the expected result should like in case anyone else have this problem: <resultData> <SupplierData xmlns="http://www.webservicex.net/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SupplierNumber>0230740001</SupplierNumber> <CompanyName>DR WILLIAM B HUTCHESON & ASSOC...1.7KViews0likes0CommentsGetting error for xQuery
Hi, I have a very simple xQuery Assertion: declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns1='http://www.webservicex.net/'; <resultData> { for $x in //ns1:SupplierData return $x } </resultData> I am getting the following error: XQuery Match Assertion failed for path [declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; declare namespace ns1='http://www.webservicex.net/'; { for $x in //ns1:SupplierData return $x } ] : Exception:org.custommonkey.xmlunit.Diff [different] Expected namespace URI 'null' but was 'http://www.webservicex.net/' - comparing at /resultData[1]/SupplierData[1] to at /resultData[1]/SupplierData[1] My expected result is: <resultData> <SupplierData> <SupplierNumber>0230740001</SupplierNumber> <CompanyName>DR WILLIAM B HUTCHESON & ASSOC OPTOME</CompanyName> <Address1>112 ELDEN ST</Address1> <Address2>STE C</Address2> <City>HERNDON</City> <Zip>VA</Zip> ...Solved1.8KViews0likes2Comments