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?