Sitemap XML and modification dates
Fix syntax and encoding problems that prevent reading first. Then correct misleading dates at the source, without inventing dates for content whose history is unknown.
What the findings mean
These checks examine the recorded sitemap character set and modification-date formats or patterns. The current recent-date check can flag a sitemap whose parsed dates all lie near the run time or on its calendar day; the dates need not be exactly identical. A sitemap must be readable as its intended XML format, and lastmod should represent a relevant content change.
What the evidence cannot establish
Matching or recent dates can be correct after a shared content change. The character-set check alone is not comprehensive XML validation. A freshly generated sitemap does not mean all its pages changed. Where a reliable date is unavailable, leaving out optional lastmod is better than supplying an invented value.
How to prioritise
Fix syntax and encoding problems that prevent reading first. Then correct misleading dates at the source, without inventing dates for content whose history is unknown.
What to do
- Use the recorded format or encoding issue to locate the faulty generator output. Check that a successful response contains XML rather than an HTML error page.
- Generate valid UTF-8 XML with the appropriate sitemap namespace and escaped characters using a proper serializer. Check gzip delivery if used.
- Map lastmod to the relevant content-modification field rather than the sitemap build time, using a supported date/time representation.
- Test a changed page, an unchanged page and an imported page with no known modification date.
Check the result
Read the published file with an XML parser and compare dates with the content’s actual history. Regenerating the sitemap alone should not give unchanged pages a new modification date.
Need help with a particular finding?
Contact us →