This tool helps you to make sure for url is valid in your sites sitemap file.
- Download released binary
sudo mv checker-linux-amd64 /usr/local/bin/sitemap-checker
sudo chmod +x /usr/local/bin/sitemap-checker
Single sitemap validation:
sitemap-checker -uri=http://sitename.com/sitemap.xml -out=output.xml
Sitemap index file validation with connected sitemaps:
sitemap-checker -uri=http://sitename.com/sitemap.xml -index
After process completed, you will see validated xml sitemap in current directory. You can use that sitemaps.