You need to add it to the top level element in the document (the root):
map.Root.Add(...)
Erv Walter
2009-05-01 00:39:43
You need to add it to the top level element in the document (the root):
map.Root.Add(...)
Why not fill it out completely with another xml literal hole?
Dim map As XDocument = <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<%= From n In Nodes.Cast(Of Node)() _
Select <url>
<loc><%= AbsoluteRoot + Url.RouteUrl("IdOnly", New With {.id = n.Id}) %></loc>
</url> %>
</urlset>