A sitemap rarely fails loudly. You generate the file, upload it, and carry on, while one broken entry quietly stops search engines from using it. The damage surfaces later and indirectly: pages that stop being crawled, a new section that never appears, a migration that seems to have lost half the site.

This guide explains the sitemap errors that matter, in the classes the free Sitemap Validator on Ovatly checks for: malformed XML, a missing or invalid URL in an entry, dates in the wrong format, and breaches of the protocol limits. It also covers the warnings that sit below the errors, and the failures no file check can see. The validator runs in your browser; the XML you paste is parsed on your device and never uploaded.

Contents

  • Quick answer
  • Two levels of problem: errors and warnings
  • Malformed XML and the missing namespace
  • A missing or invalid URL in an entry
  • Dates in the wrong format
  • Breaches of the protocol limits
  • The warnings: duplicates and out-of-range priorities
  • The failures a file check cannot see
  • How to check your sitemap, step by step
  • Worked example: a European date and a stray priority
  • Limitations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Sitemap problems come in two levels. Errors break the format or the protocol: malformed XML, a missing or invalid URL in an entry, lastmod dates in the wrong format, or a file over the protocol limits of 50,000 URLs and 50 MB uncompressed. Errors can make engines ignore entries or the whole file. Warnings are softer: duplicate entries and priority values outside the 0.0 to 1.0 range, which engines usually tolerate but you should still fix. To find yours, paste the file into the Sitemap Validator, fix errors first, then warnings, and re-paste to confirm it is clean.

Two levels of problem: errors and warnings

The distinction sets your working order. An error means the file breaks the sitemap format or the protocol rules, and the consequence is real: engines can ignore the affected entries, or the whole file. A warning means the file still works, but something in it is sloppy: a URL listed twice, a priority set outside its allowed range. Engines usually tolerate warnings, which is exactly why they linger. Work errors first, then warnings.

Malformed XML and the missing namespace

A sitemap is an XML document, and XML has strict structural rules. If the markup is malformed, a parser cannot read the file as a sitemap at all, and every entry in it is lost at once. The validator parses your pasted XML with the browser's DOMParser and checks the structure of both urlset files and sitemap index files, including the namespaced variants produced by common CMS plugins.

One structural fault deserves its own mention: the namespace. The urlset element should declare xmlns="http://www.sitemaps.org/schemas/sitemap/0.9". Without it, strict parsers and some search engines will not recognise the file as a sitemap, however tidy its entries look.

A missing or invalid URL in an entry

Every entry in a valid sitemap carries an absolute URL in its loc element. An entry with the loc missing, empty, or holding something that is not an absolute URL is an error, because the entry points nowhere. This class quietly eats individual pages: the file may still parse, while the broken entries are ignored one by one.

Sitemap index files are checked the same way. An index is detected by its <sitemapindex> root, and each child <sitemap> entry's loc and lastmod are validated just like page entries, so a broken child reference breaks that branch of your sitemap tree.

Dates in the wrong format

Wherever lastmod is used, the date must be in W3C format, year first: 2026-01-31 means the 31st of January 2026. Regional orders like day-month-year are one of the most common errors this check catches, because they look natural to the person writing them. A CMS set to a European locale will happily write 31-01-2026 into every entry, and each one fails. When you see an invalid lastmod error, check the field order first: the day, month and year are usually all present, just arranged for a human instead of the protocol.

Breaches of the protocol limits

The protocol allows up to 50,000 URLs and 50 MB uncompressed per file. A file past either limit is in error, and the fix is structural: split the list across several files under a sitemap index, then run each child through the same check. Growing sites cross the URL limit quietly, one import at a time, which is why the validator's summary reports file type, entry count and size first.

The warnings: duplicates and out-of-range priorities

Two warnings show up more than any others. The first is duplicate entries: the same URL listed more than once, which wastes space and signals a sloppy generation process. The second is a priority outside the 0.0 to 1.0 range, often a leftover from a scoring system that used a 0 to 10 scale. Neither stops engines using the file, and both are worth fixing while you are there.

The failures a file check cannot see

Validation has a boundary, and knowing it prevents false confidence. The validator checks the text you paste, not the file live on your server, so a clean result says nothing about what your server actually serves. A clean validation also means only that the file is well-formed and consistent; it cannot tell you whether the listed pages are indexable or worth crawling. A perfect sitemap can list pages that robots rules block, and those URLs stay uncrawled however valid the file is. If a report instead says the sitemap could not be fetched at all, the problem sits on the live side; the companion guide, Why Does Google Say "Couldn't Fetch" My Sitemap?, works through those checks.

How to check your sitemap, step by step

  1. Open the Sitemap Validator and paste the full sitemap.xml content into the box.
  2. Read the summary: file type, entry count, size and error count.
  3. Fix the errors first, in the classes above: structure, entry URLs, date formats, limits.
  4. Then review the warnings and clear the duplicates and out-of-range priorities.
  5. Re-paste the corrected file to confirm it is clean at both levels.
  6. If the file is a sitemap index, run each child sitemap through the same check.

Worked example: a European date and a stray priority

Imagine a freshly generated sitemap whose first entry carries <lastmod>31-01-2026</lastmod>, written day-month-year by a CMS set to a European locale. The validator fails that entry with this error: URL entry 1 has an invalid <lastmod> value, "31-01-2026". The fix is a rearrangement, not new information: dates must be in W3C format, year first, so the entry should read 2026-01-31. The same file with a priority of 1.5 would add a warning rather than an error, because priority must stay between 0.0 and 1.0. Two severities, two fixes, both invisible until someone checks the file.

Limitations

The validator checks the text you paste, not the file live on your server. After fixing errors, upload the corrected file and paste its contents once more to confirm the published copy is clean. It cannot judge the pages themselves: indexing depends on the pages being crawlable, canonical and valuable enough to include. And it reads one file at a time, so an index file's children each need their own pass.

Common mistakes

  • Fixing warnings while errors remain. An out-of-range priority matters little if entries are being dropped.
  • Checking a local copy instead of the published file. The copy on your server is the one engines read; paste that one.
  • Never re-checking after a fix. One edit can introduce the next error. The re-paste takes seconds.
  • Letting a file grow past the limits. Split into an index before the protocol forces the issue.
  • Assuming a clean file guarantees indexing. Validation covers the file only; robots rules and page quality decide the rest.

FAQs

What is the difference between an error and a warning here? Errors break the format or the protocol (malformed XML, missing loc, invalid dates, oversized files) and can make engines ignore entries or the whole file. Warnings are problems like duplicates or out-of-range priorities that engines usually tolerate but you should still fix.

Why does my file need the sitemap namespace? The urlset element should declare xmlns="http://www.sitemaps.org/schemas/sitemap/0.9". Without it, strict parsers and some search engines will not recognise the file as a sitemap.

Can this validate a sitemap index file? Yes. Index files are detected by their <sitemapindex> root, and each child <sitemap> entry's loc and lastmod are checked the same way.

My sitemap passes but pages are not indexed. Why? Validation only covers the file. Indexing also depends on the pages being crawlable, canonical, and valuable enough to include; check robots rules and page quality next.

What does a valid sitemap need? Well-formed XML, the sitemap namespace declared on the root element, an absolute URL in every entry's loc element, W3C-format dates wherever lastmod is used, and no more than 50,000 URLs or 50 MB uncompressed in a single file.

Conclusion

Sitemap errors are cheap to find and expensive to leave: the file fails silently, and the cost arrives weeks later as missing pages. Paste your file into the Sitemap Validator, clear the errors, tidy the warnings, and confirm the published copy is the clean one. More such guides live in the SEO Tools archive.