Sitemap & RSS/Atom Feed Validation: Are Your Sitemap and Feed Well-Formed?

A sitemap is an XML file that lists the pages of a website for search engines, and a feed — RSS or Atom — is an XML file that lists the newest content for readers and feed readers; both are machine-readable files that only work when they are well-formed. A sitemap helps crawlers discover pages they might otherwise miss: new pages, deep pages, pages with few links pointing at them. A feed lets readers follow a site without visiting it — the reader polls the feed and shows what is new. Both files are small, the rules for them are public, and a check takes minutes — yet both break silently, with no error page for anyone to see. This article explains what a sitemap is and what a feed is, the fields that actually decide validity, the five mistakes that break them, what passing a check cannot promise, and how to check your own sitemap and feed in five minutes with the Sitemap & RSS/Atom Feed Validator.

What a sitemap is and what a feed is — and why they need to be well-formed

A sitemap is an XML document, usually served at /sitemap.xml, whose entries each carry a — the full address of one page — and optionally a date, a hint and a hint. Search engines read it to learn which pages exist and which have changed, and it matters most for the pages a crawler would otherwise miss: new pages with no links yet, deep pages buried under many clicks, and pages on large sites where crawling everything takes time. A feed serves a different audience: RSS 2.0 and Atom are both XML formats that list a site’s newest items — each with a title, a link and a date — so a feed reader can poll one file and show subscribers what is new without them visiting the site at all.

Both files need to be well-formed because XML parsers, unlike HTML parsers, have no error recovery. One unclosed tag, one stray & in a URL, one date in the wrong format, and a strict parser rejects the whole document — not just the broken line. Search engines do not show you an error page when this happens; they quietly ignore the file, and your new pages wait to be discovered by crawling alone. Feed readers behave the same way: a malformed feed shows as stale or empty, and subscribers simply stop seeing new posts. Validation is cheap insurance against a silent failure — the file is small, the rules are public, and the check takes minutes.

The fields that actually decide validity — and the limits that matter

For a sitemap, every needs an absolute : the full https address, not a path like /about — a relative URL is the single most common sitemap error. The must be a W3C datetime, a date such as 2026-11-28 or a full timestamp; anything else is malformed. The must be one of the seven legal values — always, hourly, daily, weekly, monthly, yearly, never — and the must be a number from 0.0 to 1.0. A sitemap index follows the same rules: each entry needs an absolute . For RSS, the channel needs its trio — title, link and description — and each needs a title or a description, a link, and a guid. For Atom, the feed needs title, id and updated, and each needs a title, an id, an updated timestamp in RFC 3339 format, and a link with rel="alternate".

Then there are the limits. One sitemap file holds at most 50,000 URLs and at most 50 MB uncompressed — go past either and the file is invalid, however correct its entries are. Big sites split their URLs across many sitemap files and list those files in a sitemap index, which itself can list up to 50,000 sitemaps. Two things worth knowing about the optional fields: , and are hints, not commands — a search engine may crawl on its own schedule regardless — and all the URLs in one sitemap must come from a single host. A feed has no such size limit in the spec, but readers do give up on feeds that grow without bound, so keeping a feed to the newest items is good practice as well as good manners. The Sitemap & RSS/Atom Feed Validator showing the valid sitemap demo run: Score 100/100 Excellent, with the entries table, findings and format summary

The five mistakes that break them

First, relative URLs: a of /about instead of https://www.example.com/about. Parsers need an absolute address and there is no base URL to resolve a relative one against. Second, bad dates: a written as 28/11/2026, a pubDate that is not RFC 822, an Atom that is not RFC 3339. Machines parse dates strictly, and a human-readable date is usually a machine-unreadable one. Third, duplicate entries: the same URL listed twice, often because a CMS generates overlapping sitemaps. It wastes crawl budget and tells the search engine you are not sure what your own site contains. Fourth, missing channel fields: an RSS channel without a description, an Atom feed without an id — readers refuse the feed or display it wrong. Fifth, malformed XML after a bad deploy: an unescaped & in a URL (it must be written &), an unclosed tag left by a template change, a file truncated by a failed upload. Any one of these makes the whole document unparseable.

Each one has a quick fix, and the order to check them is the order above. Generate every URL from the site’s canonical base so no relative address can slip in. Format dates with the standard for the format you are writing — ISO 8601 for and Atom , RFC 822 for RSS — and let a library write them rather than formatting by hand. Deduplicate the URL list before publishing. Fill the channel or feed trio once, in the template, so it can never be missing. And after every deploy, fetch the live file and validate it — never assume the file on disk is the file the server actually serves. If the URLs inside your sitemap are themselves dead links, that is a different problem from a malformed file: the Broken Link Checker checks the links on a page one by one.

What passing a check cannot promise

This needs saying plainly: a valid sitemap is a suggestion, not an order, and indexing is the search engine’s call. Google may crawl a listed URL and still not index it — thin content, duplicate content, quality judgement — and it may index pages that appear in no sitemap at all. A sitemap raises the chance that a page is discovered; it does not guarantee the page is indexed, ranked, or shown. The same applies to feeds: a valid feed does not make a reader show your posts, and readers poll on their own schedule, so a fixed feed can take hours to show up as fresh.

A 200 does not mean indexable, either. A URL can return 200 and still be blocked by robots.txt, carry a noindex tag, require a login, or be a soft 404 that returns a success status for a page that does not exist — and a sitemap validator does not check any of those. Nor does passing here mean passing everywhere: this tool checks against its built-in rules drawn from sitemaps.org, RFC 4287 and the RSS 2.0 specification, but search engines and feed readers apply their own additional rules, and it does not validate against the official XSD schemas — so a file can pass here and still fail a strict schema check. A clean score means the file is well-formed. Discovery and indexing remain the search engine’s decision.

Sitemap vs sitemap index vs RSS vs Atom — four formats, one file each

The four formats look alike — all XML, all lists — but they answer different questions. A sitemap ( of entries) lists one site’s pages for crawlers. A sitemap index ( of entries) lists other sitemap files, and exists for sites too big for one file. RSS 2.0 ( with a of entries) is the classic blog feed: simple, forgiving, and the format most readers grew up with. Atom ( of elements, defined by RFC 4287) is the stricter modern format: entry ids must be permanent URIs that never change, and is mandatory on every entry. The root element decides the type — urlset, sitemapindex, rss or feed — and anything else is simply not a sitemap or a feed.

Which one do you need? Every site benefits from a sitemap; large sites add an index. Publishers offer a feed — RSS or Atom, since readers accept both — and Atom’s stricter rules make it a good default: an Atom file that validates is usually clean everywhere. One file holds one format, never a mixture: a document that combines a with a is neither a sitemap nor a feed, and every parser will reject it. The validator detects the type from the root element and applies the matching rules, so the first thing a check tells you is what you actually have — which is often the most useful finding of all.

How to check your own sitemap and feed in five minutes

Open the Sitemap & RSS/Atom Feed Validator and start with the paste demos: a valid sitemap sample that shows what a clean run looks like — score, entry table, findings and format summary — then the broken demo, the same sample with three deliberate faults (one non-absolute URL, one bad lastmod date, one duplicate URL), which shows how the findings explain each fault with a fix, and a small valid RSS sample for the feed side. Then check your own file: paste the XML to validate it entirely in your browser — nothing is uploaded — or check it by URL, in which case the checker fetches the file and samples up to 20 entry URLs spread evenly across it, not just the first 20, and reports each sampled URL’s HTTP status. If the URL is not XML at all, or not a recognised sitemap or feed, that is the result — the tool says so plainly, with the content type and the first bytes quoted.

Read the score as a summary, not a verdict. It starts at 100: each error costs 10, up to a total of 50; each warning costs 3, up to 15; each duplicate loc costs 5, up to 15, counted inside the error cap; more than 50,000 entries costs 10; and in URL mode each sampled URL that does not return a 2xx status costs 5, up to 20. An unparseable XML file gets an error report and no score at all. Ninety or above is Excellent, 70–89 is Good, 50–69 Needs work, and below 50 is Poor. Fix errors first — the relative URL, the bad date, the duplicate — then warnings, then re-run: the fastest path to a clean score is usually one missing field or one bad date, not a rewrite. And once the score is clean, submit the sitemap to your search console and subscribe to your own feed in a reader — that is the check no automated tool can run for you.

Try it yourself: a minimal valid sitemap

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-11-28</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://www.example.com/about/</loc>
    <lastmod>2026-11-20</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Sources

Frequently asked questions

Will a valid sitemap guarantee Google indexes my pages?

No. A sitemap is a hint: it tells Google which pages exist and when they changed, but Google decides what to crawl and what to index. A listed page can still go unindexed because of thin or duplicate content, a quality judgement, a robots.txt block or a noindex tag — and pages in no sitemap can still be indexed if Google finds them by links. What a valid sitemap does is raise the chance of discovery, especially for new and deep pages. If a page matters to you, check the file, then check the search console to see whether it was actually crawled.

My site has more than 50,000 URLs — what do I do?

Split them. No single sitemap file may hold more than 50,000 URLs or more than 50 MB uncompressed, so break the URLs into several sitemap files — by section, by content type, or by date — and list those files in a sitemap index, which itself can list up to 50,000 sitemaps. Submit the index to the search engines, or submit the individual sitemaps; either way, keep all the URLs in one sitemap on a single host, keep each file under both limits, and remember that an index is only a list of files — the files themselves still have to be valid.

Do I need both a sitemap and an RSS or Atom feed?

They serve different audiences, so most content sites benefit from both. The sitemap is for search engines: it helps crawlers discover and re-crawl your pages. The feed is for readers and subscribers: it powers feed readers, newsletter tools and aggregators, and it is how people follow a site without visiting it. A mostly static site with rarely changing pages may only need a sitemap, but any site that publishes regularly should offer a feed too — RSS or Atom, since readers accept both — and both files deserve the same five-minute validation after every deploy.