The first code I made for a sitemap generator site and has additional information, the second code is generated by BSS.
Informing the priority, as well as the last modification made to the search engines helps a lot in the indexing of the pages, making these changes would be of great help for us who use the BSS to create and update our sites.
Sitemap Generator
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>https://andresomeluz.com.br/dj-niteroi/niteroi.html</loc>
<lastmod>2021-12-29T22:19:23+00:00</lastmod>
<priority>1.00</priority>
</url>
I noticed this as well. I export a sitemap using BSS. Then I add the lastmod manually, and the priority manually. Any new pages, I’ll create a manual entry for.
I know it would be nice for BSS to generate lastmod, but generally you will export the whole project before uploading to your webserver, meaning the lastmod will always be the same, and even if you do export only a single page and a sitemap, the NEW sitemap will be wrong, so you’d be manually adding an entry to your original sitemap anyway.
I can definitely see a use for manually setting sitemap priority in BSS though.
BSS only outputs the sitemap with the url, the original poster and others wanted it to produce a complete sitemap with last modified and priority fields to improve SEO.
With this when you edit your page,you can change the lastmod variable and then export as usual which will generate the simple sitemap.
Then running the php script will produce the new sitemap with the correct data.