A Namespace for RSS

There has been some discussion recently on the RSS Advisory Board public mailing list, regarding the possibility of assigning a namespace to RSS elements. This namespace would be exclusively for use when embedding RSS inside other XML vocabularies.

My concern was that the introduction of such a namespace – even when explicitly limited to embedding scenarios – would ultimately lead to that namespace being used in regular RSS feeds. This has the potential to cause major problems for feed readers.

Testing My Theories

Before becoming overly concerned, though, I figured I should run some tests to see how much of an issue it really was. I created three feeds: one with no namespace as a baseline test; one using the namespace proposed by the board⁠1; and one with the Userland namespace⁠2 that Dave Winer had used in the past, albeit experimentally.

My theory in testing the latter, was that some feed readers might have added support for the Userland namespace at the time it was first introduced, even if it was never officially added to the RSS specification. It was thus more likely to work than a random namespace that had only just been proposed.

As an afterthought, I also added two variations of the namespaced feeds, using prefixed element names. My experience with namespaces in Atom suggested that this would be another source of problems for many feed readers.

Executive Summary

Surprisingly, there were a good number of clients that had no problems reading any of the feeds. There were a few (Google Reader being the most noteworthy) that worked with the Userland namespace, but not the one being proposed by the board. And some (Internet Explorer being one) that wouldn’t recognise either of the namespaces.

As expected, the prefixed feeds caused more problems. Many of the clients that appeared to support both namespaces, would choke on those same namespaces when the element names were prefixed. Clients that only supported the one namespace would tend to fare better though – I suspect they were more likely to be using namespace-aware parsers that would understand prefixes.

Detailed Results

For anyone wishing to replicate my tests, these are the feeds I used:

Clients that worked with all feeds:

Clients that worked with all but the prefixed variations:

Clients that only worked with the Userland namespace:

Clients that didn’t work with either namespace:

Note that I didn’t have the latest version of every client tested, but I suspect that more recent versions wouldn’t have made much of a difference.

Footnotes

  1. http://www.rssboard.org/rss-namespace/
  2. http://backend.userland.com/rss2
  3. RSSOwl was unable to extract the feed titles in the prefixed feeds, but otherwise had no problems reading them.
  4. Planet Venus accepted both namespaces in the initial tests, but only recognised the Userland namespace in the prefixed variations.