Skip to content

digital-loop/sitemap-extended.xsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

sitemap-extended.xsd

This XML schema can be used to validate sitemaps. Besides the default sitemap elements it supports xhtml (hreflang), image, video and news elements.

Sources

Prefix Namespace Schema Location
http://www.sitemaps.org/schemas/sitemap/0.9 https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
xhtml http://www.w3.org/1999/xhtml https://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd
image http://www.google.com/schemas/sitemap-image/1.1 https://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd
news http://www.google.com/schemas/sitemap-news/0.9 https://www.google.com/schemas/sitemap-news/0.9/sitemap-news.xsd
video http://www.google.com/schemas/sitemap-video/1.1 https://www.google.com/schemas/sitemap-video/1.1/sitemap-video.xsd

Use case

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!

About

This XML schema can be used to validate sitemaps. Besides the default sitemap elements it supports xhtml (hreflang), image, video and news elements.

Topics

Resources

License

Stars

Watchers

Forks