Wednesday, April 12, 2006

BizTalk 2004 XPath Expression gotcha!!!

if you use XPath queries in your orchestration expression shapes make sure you wrap your XPath query with the string() method.
(See below)

SomeVar = xpath(Msg_In,"string(/*[local-name()='SomeMessage' and namespace-uri()='http://SomeCompany/Message']/*[local-name()='SomeValue' and namespace-uri()=''])");

This is not very well documented anywhere but here it is.
Note this is for BizTalk 2004 and i am unsure if it has changed in 2006.

1 comments:

Tonny said...

It isn't changend in Biztalk 2006. Thanks for your solution. I had the same problem in 2006, and this is the solution.