How to call an store procedure for each node of an xml?

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › How to call an store procedure for each node of an xml? › How to call an store procedure for each node of an xml?

#12641

Hello,
You can loop/iterate through nodes in an XML message using the loop shape in BizTalk. You just need to supply the XPATH statement that will isolate the nodes to loop through. You could call your stored procedures on each node. I think it would probably help to promote the values you are looking for or use the mapper when creating the message used to call the stored procedure.

I would personally recommend either using updategrams or perhaps OPENXML. I have found that a combination of OPENXML in my stored procedures and \”FOR XML AUTO\” select statements can give you more flexibility than updategrams. Good luck

http://codebetter.com/blogs/jeff.lynch/articles/128664.aspx