XSD
sitemaps.org · 0.9
Sitemap 0.9
XML sitemap
The sitemap.xml format read by Google, Bing and other search engines.
About
A sitemap lists the pages of a site with optional last-modified dates. Search engines accept up to 50,000 URLs and 50 MB (uncompressed) per file.
Good to know
- The schema checks foreign elements strictly, so a sitemap that uses the image, video or news extensions is reported invalid here. Choose Sitemap with Google extensions for those.
- URL counts, file size limits and whether the URLs work are not checked.
Example document
sitemap.xml · 419 B · valid against this schema
In CI and from code
The same schema by its name, sitemap-0.9, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema sitemap-0.9
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: sitemap-0.9
api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
-H "Authorization: Bearer $XMLVALID_API_KEY" \
-F document={{ $schema->example ?? 'document.xml' }} -F schema=sitemap-0.9
Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups