BizTalk Gurus

Reply to: Re: How to pass XML document as string parameter to Scripting Functoid

Write your reply below. Click the "Post" button to submit your message.
greg.forsythe wrote the following post at Tue, Jul 7 2009 2:10 AM:

How do you assign the content to xmlTmpDocOut?

There are a couple of issues with your code:
strTmp = xmlTmpDocOut.InnerText.ToString();

The InnerText property only returns the text content of your Xml, basically strips all the xml tags.
You should use:
strTmp = xmlTmpDocOut.OuterXml;

The xpath statement in your map is also incorrect, there is no <Schema> root node in your message.
You should use:
/*[local-name()='HashString']/*[local-name()='xmlDoc']

This may not be the best way of achieving your result. Are you using custom Xslt? What is the purpose of passing the Xml to the scripting functoid?

Quote
 
Description:    

:




 
SPAM Control: Type BIZTALK2009 exactly as shown:
This is to stop SPAM to this forum. Only Anonymous Users see this.