Passing XML in BizTalk
Something I noticed last week at a client: The developer keep getting XLANG errors when passing XML from the orch to a custom DLL. The issue? The XML passed is already serializable, but the developer did the following in his code:
XmlDocument newDocument = passedXmlDocument;
This will break, because the newDocument is not serializable. So, remember, do not set XML passed from BizTalk to a new document. Use it as is.