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