This XML schema can be used to validate sitemaps. Besides the default sitemap elements it supports xhtml (hreflang), image, video and news elements.
I lately used the Apache NiFi ValidateXml Processor and was only able to specify a file path or a URL to an XML schema file to validate sitemaps. Since I could not find a ready-to-use solution I created this simple repository.
❗ This schema does not validate if the sitemap.xml actually defines the necessary namespaces in the <urlset>
tag
❗ This schema should not be referenced in the sitemap.xml itself only use it for validation!