title: Why does C# XmlDocument.LoadXml(string) fail when an XML header is included?
body: <p>Does anyone have any idea why the following code sample fails with an XmlException "Data at the root level is invalid. Line 1, position 1."</p>
  
  <pre><code>var body = "&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;Report&gt; ......"
  XmlDocument bodyDoc = new XmlDocument();            
  bodyDoc.LoadXml(body);
  </code></pre>