Håkon Hægland
Håkon Hægland

Reputation: 40718

XML RSS file format: What is the difference between <rss> and <feed> tags?

According to wikipedia and Landofcode.com an RSS file should have the following type of header:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">

If I take an RSS feed at stackoverflow.com, for example this, it has no <rss> tag, instead it has a <feed> tag at the top of the file:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">

What is the difference between these file formats?

Upvotes: 1

Views: 1059

Answers (1)

Quentin
Quentin

Reputation: 943100

The first one is RSS (of which there are many different, semi-compatible specifications).

The second one is Atom, which has a well documented spec and was set up to be a replacement for RSS that learns lessons from RSS but which avoids backwards compatibility to escape the problems with RSS.

Upvotes: 1

Related Questions