XML structure
Parse sitemap urlsets and sitemap indexes.
Validate XML sitemaps for structure, URL validity, duplicates, HTTP behavior, redirects, content types, and optional canonical consistency.
Parse sitemap urlsets and sitemap indexes.
Check HTTPS validity, duplicates, HTTP status, redirects, final URLs, and content types.
Optionally compare HTML canonical signals with final URLs.
Child sitemap locations are recognized without recursively downloading child sitemaps in this release.
Get the repository ZIP or clone the source.
Use Python 3.10+ and install the requirements.
Run the validator against a remote sitemap or local XML file.
Use the results as observable technical evidence, not as proof of indexing or ranking.
python -m pip install -r requirements.txtpython xml_sitemap_validator.py https://example.com/sitemap.xmlpython xml_sitemap_validator.py ./sitemap.xml --no-httppython xml_sitemap_validator.py https://example.com/sitemap.xml --check-canonicalIt does not guarantee rankings, indexing, traffic, search visibility, or search-engine decisions. Evaluate findings against the actual website, evidence, current authoritative documentation, and project context.