title: .NET: XDocument missing XDeclaration?
body: <p>When I write out this to the console, the output is missing the XDeclaration content. What gives?</p>
  
  <pre><code>        var map = new XDocument(
              new XDeclaration("1.0", "UTF-8", null),
              new XElement(SiteMap.Namespace + "urlset")
          );
  
          Console.Write(map.ToString());
  </code></pre>
  
  <p>How do I get the XML for map including the <code>&lt;?xml...&gt;</code> declaration?</p>