freecourses.digital
Lesson progress: 0 of 3 activities done
All lessons in Technical SEO Auditing Lesson 4.5 of 84

XML Sitemap Validation

Covered here

  • What a clean XML sitemap should contain
  • Format rules and size limits
  • How to crawl a sitemap to find bad URLs
  • How to read the Search Console Sitemaps report

Short answer

XML sitemap validation checks that the file is readable, within limits of 50,000 URLs or 50 MB, and lists only final, indexable, 200-status canonical URLs. Crawl the sitemap URLs to find redirects, 404s, noindexed and canonicalized pages, compare it with your site crawl, and confirm it is submitted in Search Console without errors.

An XML sitemap is your official list of “pages worth indexing.” If that list includes deleted pages, redirects, and duplicates, Google learns to trust it less. A clean sitemap is a short audit with a big payoff.

What a good sitemap looks like

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.ph/rooms/deluxe/</loc>
    <lastmod>2026-09-14</lastmod>
  </url>
</urlset>
  • Absolute URLs on the correct protocol and host
  • UTF-8, valid XML, max 50,000 URLs or 50 MB uncompressed per file
  • Only URLs that are 200, indexable, and self-canonical
  • Accurate lastmod dates

The validation steps

  1. Find all sitemaps: robots.txt Sitemap lines, /sitemap.xml, /sitemap_index.xml, and Search Console.
  2. Check they load: 200 status, valid XML, within limits.
  3. Crawl the sitemap URLs in list mode or with sitemap integration.
  4. Flag non-indexable entries: 3xx, 4xx, 5xx, noindex, canonicalized, blocked by robots.txt.
  5. Compare with your site crawl: indexable pages missing from the sitemap, and sitemap pages missing from the crawl (orphans).
  6. Check Search Console’s Sitemaps report: status “Success,” and discovered URL counts that make sense.

Practice: keep in sitemap or remove?

Sort each item into the right group.

  • Indexable product page returning 200

  • URL that 301 redirects

  • Page with noindex

  • Blog post with self-referencing canonical

  • Parameter URL canonicalized to the clean URL

  • Deleted page returning 404

Common mistakes

  • Static sitemaps that never update. Use a CMS-generated one.
  • Staging or HTTP URLs in the live sitemap.
  • lastmod set to today for every URL. Google stops trusting it.
  • Submitting but never checking the report.
1. What is the URL limit per sitemap file?
2. Which URL belongs in a sitemap?
3. Why avoid setting lastmod to today on every URL?

Your action

Next, you will audit canonical URLs in depth.

Key terms

XML sitemap
A file listing URLs you want search engines to discover and consider for indexing.
Sitemap index
A file that lists multiple sitemaps, used for large sites or separate content types.
lastmod
A date in the sitemap showing when the page last changed significantly. Google uses it only if it is consistently accurate.
Sitemaps report
The Search Console report showing submitted sitemaps, fetch status, and discovered URLs.

Questions beginners ask

Does a sitemap guarantee indexing?

No. It helps discovery and signals preference, but Google still decides what to index.

Should I include every page?

Include every page you want indexed, and only those. Leave out redirects, errors, noindexed pages, and duplicates.

Do priority and changefreq matter?

Google ignores them. Accurate lastmod dates are more useful.

How many sitemaps can I have?

As many as you need, grouped in sitemap index files. Splitting by type (products, posts, locations) makes reporting easier.

Related lessons

Want someone to handle SEO for your business while you learn? The team at Remar Digital can help.