<?= '<?xml version="1.0" encoding="UTF-8"?>' ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php foreach ($urls as $url): ?>
    <url>
        <loc><?= htmlspecialchars(
            $url["location"],
            ENT_XML1 | ENT_QUOTES,
            "UTF-8",
        ) ?></loc>
        <lastmod><?= htmlspecialchars(
            $url["modified"],
            ENT_XML1 | ENT_QUOTES,
            "UTF-8",
        ) ?></lastmod>
        <priority><?= htmlspecialchars(
            $url["priority"],
            ENT_XML1 | ENT_QUOTES,
            "UTF-8",
        ) ?></priority>
    </url>
<?php endforeach; ?>
</urlset>
