Forum Discussion
Christoph_Schwa
16 years agoContributor
Thanks Ole,
this is working great now. here is the exact result and the according XQuery:
Successful
Users
Global_Codes
Global_Subscribe
XQuery:
declare namespace a='http://schemas.datacontract.org/2004/07/SecondTravel.Global.DataContract.Licence.v1_0';
declare namespace ns1='http://SecondTravel.Global.ServiceContract.Licence.v1_0Package.ILicencePackage';
{
for $z in //ns1:GetListResult/a:ResultSet/a:LicenceDCResultItem/a:FunctionalityCode/text()
order by $z return{data($z)}
}
this returns all functionalitycodes in a ordered list that then is compared with the expected result (in the same ordered list)
hope this helps others finding into XQuery faster
regards Christoph
this is working great now. here is the exact result and the according XQuery:
XQuery:
declare namespace a='http://schemas.datacontract.org/2004/07/SecondTravel.Global.DataContract.Licence.v1_0';
declare namespace ns1='http://SecondTravel.Global.ServiceContract.Licence.v1_0Package.ILicencePackage';
{
for $z in //ns1:GetListResult/a:ResultSet/a:LicenceDCResultItem/a:FunctionalityCode/text()
order by $z return
}
this returns all functionalitycodes in a ordered list that then is compared with the expected result (in the same ordered list)
hope this helps others finding into XQuery faster
regards Christoph
Related Content
Recent Discussions
- 2 days agoruchisingh