Xpath Debatching

Home Page Forums BizTalk 2004 – BizTalk 2010 Xpath Debatching

Viewing 1 reply thread
  • Author
    Posts
    • #20347

       It has been said that XPath Debatching is more efficient than Atomic Scope node list debatching.

      I have a nested XML like the following

      <tasks>

          <task>

               <taskname>Task1</taskname>

               <task>

                     <taskname>Task2</taskname>

              </task>

          </task>

          <task>

               <taskname>Task3</taskname>

          </task>

      </tasks>

      the number of levels is not known when the message is recieved.

      How do I debatch and transmit all the messages using XPath?

       

      Thanks,

    • #20350

      Have you looked at receive pipeline debatching?  This is the Microsoft-blessed way to debatch in BizTalk.  For simple cases, you could use a messaging only solution that debatches in a receive pipeline in a receive port (much more efficient than an orchestration).  For more comples cases, you can call a receive pipeline from an orchestration (http://geekswithblogs.net/sthomas/archive/2005/06/16/44023.aspx).  If you really need to use XPath debatching you can use the xpath function (http://geekswithblogs.net/sthomas/archive/2004/10/25/13269.aspx).  Maybe use an indexed XPath statement within a loop to extract the individual records.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.