Subject:Need second set of eyes to debug Author:Neal Walters Date:13 Jul 2005 12:13 PM
I created
select AmazonOrderId from ODIMO.dbo.tbAmazonOrder
order by AmazonOrderId
and called it: EtlProdSelectTbAmazonorders.rdbxml
It produces xml like this:
<root>
<row>
<AmazonOrderId>002-0302865-2199203</AmazonOrderId>
</row>
<row>
<AmazonOrderId>002-0302865-2199203</AmazonOrderId>
</row>
I copied and pasted this results into Stylus Studio:
and ran this xpath /root/row[AmazonOrderId='002-0302865-2199203']
and I see good results.
BUT if I run this xquery:
<AmazonOrdersTest>
{
for $Message in (doc("db://EtlProdSelectTbAmazonorders.rdbxml")
/root/row[AmazonOrderId='002-0302865-2199203'])
return
<ID>{$Message}</ID>
}
</AmazonOrdersTest>