Wednesday, February 01, 2006

 

Usage of XPath in the Orchestration

Here are some of the things you can do with xpath and how to do them:
- Set a single values inside a Message using xpath
à xpath(SingleXML, "//LineTotal") = nLineTotal;

- Extract a single piece of data out of a Message
à sCustomer = xpath(InXML,"string(//Customer)");

- Extract a single node out of a large XML Document and assign it to a message or variable
à sXPath = System.String.Format("//Item[{0}]",nCount);
à xDoc = xpath(InXML, sXPath);

- Count the number of nodes or occurrences of something inside your message
à nNumberItems = System.Convert.ToInt32(xpath(InXML, "count(//Item)"));

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?