Skip to content
Novus Examples
xml858 B

Sitemap shard 1 (core pages)

The first child of the sitemap index: six core URLs with a deliberately uneven mix of lastmod, changefreq and priority, including one entry that carries nothing but a loc. For testing that optional sitemap fields really are optional.

Preview — first 33 linesxml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-01-01</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.example.com/catalog/</loc>
    <lastmod>2026-01-01</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://www.example.com/catalog/boots</loc>
    <lastmod>2026-01-01</lastmod>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://www.example.com/catalog/gloves</loc>
    <lastmod>2026-01-01</lastmod>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://www.example.com/about</loc>
    <changefreq>yearly</changefreq>
  </url>
  <url>
    <loc>https://www.example.com/contact</loc>
  </url>
</urlset>

Specifications

Seed
70400
Site
example.com (fictional)
Format
urlset 0.9
Urls
6
Optional Fields Omitted
true

Testing contract

Expected to pass
Scenario
Parse a urlset whose entries declare different subsets of the optional fields.
Expected result
Six URLs are returned; the entry with only <loc> parses with default priority 0.5 and no changefreq, and no missing field aborts the parse.

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 shard 1 (core pages)” 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 · urlset 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-shard-1.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.