X.Web.Sitemap — simple library for creating sitemaps
A long time ago, I needed to add a sitemap for my blog. It was a very simple task. But after some time I needed to add a sitemap for another site and one more site, and again for another site.
So I decide to move this logic into the library which will provide a simple and straightforward solution for creating sitemaps.
Usage example
Below is an example of basic usage:
Below is a more comprehensive example that demonstrates how to create many sitemaps and how to add them to a sitemap index file in a unit-testable fashion.
You can get the source code of the project from GitHub, or install the library as nuget package.