One URL per line. We validate each is http(s), XML-escape ampersands and angle brackets, apply your defaults for lastmod / changefreq / priority, and cap output at the sitemaps.org limit of 50,000 URLs per file. Point your robots.txt at it and you're done.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://yoursite.com/</loc>
<lastmod>2026-05-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://yoursite.com/about</loc>
<lastmod>2026-05-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://yoursite.com/blog</loc>
<lastmod>2026-05-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://yoursite.com/blog/why-llms-cite-some-sites</loc>
<lastmod>2026-05-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://yoursite.com/contact</loc>
<lastmod>2026-05-13</lastmod>
<changefreq>weekly</changefreq>
<priority>0.7</priority>
</url>
</urlset>