Model structured documents with elements, attributes, namespaces, schemas, parsing, and transformations.
Lessons
Help search engines crawl your site with a sitemap.
XML Sitemaps is easiest to learn by reading the example, changing it, and observing the result.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/learn/xml</loc>
<lastmod>2026-06-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>Practice the XML Sitemaps example in a small scratch file, then explain what changed and why.