Last post Oct 11, 2006 08:44 PM by brchapman
Mar 24, 2006 01:44 PM|bigtoga|LINK
May 23, 2006 01:10 PM|SimpleCoder|LINK
Oct 11, 2006 08:44 PM|brchapman|LINK
It's a long time since your post, so I don't know if you managed to write the HttpHandler or not, but I recently went through the same exercise. It is correct that the best way to output a Google sitemap is through using a HttpHandler. It's pretty easy
to do, just create a Class implementing the IHttpHandler interface, and make sure you cover off the encoding and XML format correctly. You'll want to use an XmlWriter and get the tags right to match the Google Sitemap schema. You can also go to Google to
verify that your Schema works correctly - the tools are in the Webmaster section of Google.
I constructed an example to test out the theories as well - only I used an ASP.NET provider model as well (no need to do this if it doesn't suit). The Provider model is so I can create a library of site and page specific ways to generate a list of URL's,
depending on the type of site I am constructing, and what is in it.
I posted an article on my blog about this - it has a demo and source code available. You can see it and download the code in the blog entry
Generating a Google Sitemap using an ASP.NET Provider.
Hope this helps anyone with the same question.