Sub topic 11
Offering an RSS Feed
Assume you know basic XML, URLs, and how your newsroom publishes a press release. This chapter focuses on the feed itself, how readers consume it, and the errors that make feeds unreliable.
What an RSS feed does
RSS, or Really Simple Syndication, is an XML document that lists recently published content. A journalist or feed reader subscribes to one stable URL. The reader periodically fetches that URL and detects new items.
An RSS 2.0 feed has two main levels:
channeldescribes the newsroom feed.itemdescribes one release or news post.
Each item should include a title, an absolute URL, a stable identifier, a publication date, and a short description. Use the release URL as the guid when that URL will not change.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Acme Newsroom</title>
<link>https://example.com/newsroom</link>
<description>Press releases and news from Acme.</description>
<language>en-us</language>
<lastBuildDate>Thu, 12 Mar 2026 09:00:00 GMT</lastBuildDate>
<item>
<title>Acme launches Widget 2</title>
<link>https://example.com/newsroom/acme-launches-widget-2</link>
<guid isPermaLink="true">https://example.com/newsroom/acme-launches-widget-2</guid>
<pubDate>Thu, 12 Mar 2026 09:00:00 GMT</pubDate>
<description>Widget 2 cuts setup time for small teams.</description>
</item>
</channel>
</rss>The pubDate value uses the RFC 822-style date format shown in the example. Keep the date in a consistent time zone, usually UTC. The lastBuildDate value tells consumers when the feed itself was regenerated.
Publishing and linking the feed
Place the feed at a predictable URL such as /newsroom/feed.xml. Serve it over HTTPS with the media type application/rss+xml. The URL must return the XML directly, rather than an HTML page or a download that requires authentication.
Add a discovery link in the newsroom page's <head>:
<link rel="alternate" type="application/rss+xml"
title="Acme Newsroom" href="/newsroom/feed.xml">You can also show a visible “Subscribe to RSS” link. The visible link helps people discover the feed even when their browser does not provide feed controls.
Ordering, identifiers, and updates
Put the newest item first. Do not reuse an item's guid for a different story. If a release is corrected, keep its URL and identifier stable, update its description or page, and update the publication metadata only according to your editorial policy.
Keep old items in the feed for a reasonable period. A feed with only the newest item can cause readers to miss releases when they check less often. A feed containing hundreds of full articles can become slow, so link to the release page and keep the description concise.
| Field | Purpose | Common mistake |
|---|---|---|
| `guid` | Identifies the item permanently | Changing it when the title changes |
| `pubDate` | Records when the item was published | Using a local date without a time zone |
| `link` | Sends the reader to the canonical page | Using a relative URL |
Validate and maintain the feed
Test the feed after every template change. Check that the XML parses, every URL works, dates are valid, and identifiers remain stable. Test an updated release and a newly added release separately.
A small maintenance routine should:
- regenerate the feed when a release is published or corrected;
- return a useful
Content-Typeheader; - keep the feed URL unchanged;
- monitor server errors and broken release links;
- include the feed URL in documentation for journalists.
Exercise
A release's headline changes, but its canonical URL stays the same. Which RSS field should remain unchanged, and why?
Show answer
Keep the guid unchanged because it identifies the same release across feed checks. Update the title to reflect the corrected headline.