title: Root Element Missing - Creating Xmldocument using XmlTextWriter
body: <p>I'm having the following code which is spitting 'Root Element Missing' during <code>doc.Load()</code>.</p>
  
  <pre><code>MemoryStream stream = new MemoryStream();
  XmlTextWriter xmlWriter = new XmlTextWriter(stream, Encoding.UTF8);
  xmlWriter.Formatting = System.Xml.Formatting.Indented;
  xmlWriter.WriteStartDocument();
  xmlWriter.WriteStartElement("Root");
  XmlDocument doc = new XmlDocument();
  stream.Position = 0;
  doc.Load(stream);
  xmlWriter.Close();
  </code></pre>
  
  <p>I'm not able to figure out the issue. Any insights?</p>