sitemap_data = [
    {
        "loc": "https://www.artboothgallery.com/",
        "lastmod": "2024-08-14",
        "changefreq": "daily",
        "priority": "1.0"
    },
    {
        "loc": "https://www.artboothgallery.com/about-us",
        "lastmod": "2024-08-10",
        "changefreq": "monthly",
        "priority": "0.8"
    },
    {
        "loc": "https://www.artboothgallery.com/press",
        "lastmod": "2024-08-01",
        "changefreq": "monthly",
        "priority": "0.7"
    },
    {
        "loc": "https://www.artboothgallery.com/locations",
        "lastmod": "2024-08-10",
        "changefreq": "monthly",
        "priority": "0.7"
    },
    {
        "loc": "https://www.artboothgallery.com/blog",
        "lastmod": "2024-08-14",
        "changefreq": "weekly",
        "priority": "0.6"
    }
]

# Generating the XML content
xml_sitemap = '<?xml version="1.0" encoding="UTF-8"?>\n'
xml_sitemap += '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n'

for entry in sitemap_data:
    xml_sitemap += f"  <url>\n"
    xml_sitemap += f"    <loc>{entry['loc']}</loc>\n"
    xml_sitemap += f"    <lastmod>{entry['lastmod']}</lastmod>\n"
    xml_sitemap += f"    <changefreq>{entry['changefreq']}</changefreq>\n"
    xml_sitemap += f"    <priority>{entry['priority']}</priority>\n"
    xml_sitemap += f"  </url>\n"

xml_sitemap += '</urlset>'

# Saving the generated XML sitemap to a file
sitemap_path = "/mnt/data/sitemap.xml"
with open(sitemap_path, "w") as file:
    file.write(xml_sitemap)

sitemap_path