I'm getting "error btm1046: Output validation error: Root element is missing." when I was mapping xml document to IDoc schema that was generated from VS 2005. Any idea why I'm getting this error.
– Create a variable of type XmlDocument (say:xdoc) – assign the message to the variable (xdoc = yourmessage) – write the xml to the Eventlog (System.Diagnostics.Eventlog.WriteEntry(xdoc.OuterXml, "EventlogSource");)