[BTS]a non-serializable object type 'System.Xml.XmlNode varXmlNode' can only be declared within an atomic scope or service
How to use XmlNode in BizTalk?
I need use XmlNode to query a message in biztalk. By default can't user xmlnode in vs.
Solution
// Get Xml Body varXmlData = MsgEventMessage; varXPath = "/*[local-name()='Root']/*[local-name()='Data']/*[local-name()='XmlBody']"; varXmlNode = varXmlData.SelectSingleNode(varXPath); varXmlString = varXmlNode.InnerXml;