RSS 2.0
<atom:link>
An Atom element borrowed into RSS so a feed can name its own URL — the conventional way to declare rel="self".
RSS 2.0 has no element for a feed's own address, so the convention is to borrow Atom's. <atom:link rel="self" href="…"/> inside the channel tells readers and aggregators where the feed canonically lives, which matters as soon as a feed is mirrored, proxied, or moved.
It requires the Atom namespace to be declared on the <rss> element. Because it is a foreign element, nothing about RSS itself requires it — but every feed validator asks for it, and this one warns when it is absent.
- Format
- RSS 2.0
- Namespace
- Atom Syndication Format 1.0
- Parent
- <channel>
- How many
- One per <channel>, conventionally.
What our validator does
The channel's links are scanned for one with rel="self", and its absence is reported as a warning.
Broken and fixed
Both documents below are well-formed XML — that is the point of this corpus — and both are run through the validator on every test run. The verdicts here are what it returned, not what we expect it to.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Example</title>
<link>https://example.com/</link>
<description>Notes from the example farm.</description>
<item><title>Hen lays egg</title><guid>https://example.com/egg</guid></item>
</channel>
</rss>No <atom:link rel="self"> — readers use it to learn the feed's canonical URL.<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Example</title>
<link>https://example.com/</link>
<description>Notes from the example farm.</description>
<atom:link href="https://example.com/feed.xml" rel="self" type="application/rss+xml"/>
<item>
<title>Hen lays egg</title>
<link>https://example.com/egg</link>
<guid>https://example.com/egg</guid>
<pubDate>Mon, 10 Aug 2026 09:00:00 GMT</pubDate>
</item>
</channel>
</rss>Where it reaches
- NamespacesAtom Syndication Format 1.0The namespace this borrowed element comes from.
- ToolsRSS & Atom feed validatorWarns when a feed does not name its own URL.
Related elements
- <channel>The feed itself: three required children — title, link and description — and every item beneath them.
- <link>The URL of the site, or of an item — and, in RSS, an element whose text content is the URL rather than an href attribute.
- <link>A typed reference from a feed or entry to somewhere else — an empty element whose URL is in href, unlike RSS's <link>.
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.