• Verified
  • Free plan

X.Web.Sitemap

Listed under GitHub repos

X.Web.Sitemap is a free open source .NET library that generates and manages XML sitemaps and sitemap index files from code, splitting large URL lists into several files.

Used for

  • XML sitemap generation
  • sitemap index creation
  • large sitemap splitting

What X.Web.Sitemap does

X.Web.Sitemap builds sitemap XML from code. You create a Sitemap object, add Url entries with a location, change frequency, priority and timestamp, then write the result with Save, SaveAsync, SaveToDirectory, ToXml or ToStream. SaveToDirectory splits a large list into pieces and stores them in a directory. The package targets netstandard2.0, net10.0 and net11.0, so it runs across .NET generations.

A second set of classes handles multiple files. ISitemapGenerator and ISitemapIndexGenerator sit in the X.Web.Sitemap.Generators namespace, with SitemapGenerator and SitemapIndexGenerator as default implementations. You register them in a dependency injection container, for example services.AddSingleton<ISitemapGenerator, SitemapGenerator>(), or construct them with new. That path creates several sitemaps and links them from a sitemap index file.

Key features

Sitemap XML generation
Build a sitemap object in C# and serialize it to XML text or a stream.
Url entries with priority
Each Url carries Location, ChangeFrequency, Priority and TimeStamp values set by the caller.
File and stream output
Save, SaveAsync, SaveToDirectory, ToXml and ToStream are extension methods shipped in the X.Web.Sitemap.Extensions namespace.
Splitting large sitemaps
SaveToDirectory splits a large list of URLs into pieces and writes them into a directory.
Sitemap index generation
SitemapIndexGenerator and ISitemapIndexGenerator let you link several generated sitemaps from one index file.
Dependency injection registration
Generators can be registered as singletons in a DI container or created directly with new.
Multi-target .NET support
The NuGet package targets netstandard2.0, net10.0 and net11.0 for different .NET versions.
Install via dotnet add package
Add the library with dotnet add package X.Web.Sitemap from the command line.

How it works

  1. Add the X.Web.Sitemap package to a .NET project with dotnet add package.
  2. Create a Sitemap instance and add Url objects with location, frequency, priority and timestamp.
  3. For indexes, register ISitemapGenerator and ISitemapIndexGenerator in DI, or construct them directly.
  4. Write output to a file, a directory of split files, a stream or an XML string.

Plans and pricing

The library is free and MIT licensed, installed from NuGet, with no paid tier printed on the page.

Integrations and platforms

Works with

  • NuGet
  • ASP.NET Core dependency injection

Repository facts

  • Repositorya-gubskiy/X.Web.Sitemap
  • LanguageC#
  • Stars91
  • Forks27
  • LicenceMIT
  • Created2013-03-12
  • Last commit2026-11-17
  • Open issues0
  • asp-mvc
  • asp-net
  • asp-net-core
  • aspnet-core
  • aspnet-mvc
  • awesome
  • awesome-dot-net-core
  • awesome-list
  • c-sharp
  • nuget

Services and details

  • Does SEO work itself

    Yes
  • Free plan or free tools

    Yes

No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.

Compare with other SEO tools:

About the company

Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.