Wednesday, September 13, 2006

Used XPath get to the value from message

Get to the one value

Follow this BizTalk Expression Code
Create string variable from "Orchestration View"
strValue = xpath(messageName, "string(/*...XPATH)");

Get to the mutiple value

Follow this BizTalk Expression Code
Create int variable from "Orchestration View"
iCnt = xpath(messageName, "number(count(/*...XPATH))");

Loop shape code
Create int variable from "Orchestration View"
iLoop = 1;
iLoop <= iCnt

Number of count get value
Create string variable from "Orchestration View"
strValue = xpath(messageName, "string(/*...and namespace-uri()='namespace'][{0}]/*[local-name()='VALUE'...)", iLoop)

cheers!

No comments: