Skip to content
Novus Examples
xml456 B

Sitemap index over three sitemaps

A sitemap index listing three child sitemaps, one dated with a plain date, one with a full W3C datetime, and one with no lastmod at all. Two of the children ship alongside it, so a crawler can be walked from index to URL.

Preview — first 15 linesxml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-shard-1.xml</loc>
    <lastmod>2026-01-01</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-shard-2.xml</loc>
    <lastmod>2026-01-01T00:00:00+00:00</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-images.xml</loc>
  </sitemap>
</sitemapindex>

Specifications

Seed
70400
Site
example.com (fictional)
Format
sitemapindex 0.9
Children
3
Lastmod Formats
date and W3C datetime

Testing contract

Expected to pass
Scenario
Fetch the index and follow it to the URLs of the site.
Expected result
Three child sitemap URLs are discovered; both lastmod spellings parse to 2026-01-01; the missing lastmod is treated as unknown rather than as an error.

What is a .xml file?

XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.

How to use this file

Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.

How to use this file for testing

“Sitemap index over three sitemaps” is a deterministic Novus Examples fixture for Web assets, Web scraping, Editor testing. Favicons, web app manifests, service workers, robots and sitemap files, Open Graph images, and .well-known resources — for testing web tooling, crawlers, PWA installers, and asset pipelines.

Documented properties for this file: seed 70400 · sitemapindex 0.9. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Web-platform fixtures are standards-compliant samples against fictional example.com data. Test crawlers, PWA installers and manifest validators, favicon/icon pipelines, service-worker registration, or .well-known parsers against the documented structure.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("sitemap-index.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

Generated by generation/web_p7.py. Free for any use, no attribution required — license.