Yenya's World

Wed, 24 Aug 2005

Do you have a valid RSS?

I was trying to view my blog as RSS feed in various web-based RSS readers. Some of them displayed my texts differently from my expectations, so I started to wonder what exactly is a correct RSS. I knew that RSS file is a XML document, so it has to be well-formed, but nothing more.

I have found a RSS specification, and even a RSS feed validator. The problem is that the contents (body) of the message should be a plain text, without any XML markup. And when you want to include HTML tags in the story body, you need to quote <, >, and & as HTML entities (&lt;, &gt;, and &amp;, respectively).

As a quick hack to Blosxom I wrote a simple plugin "zap_markup", which can quote the required characters for some flavours (usualy the "rss" flavour). I have added an option to keep the first paragraph only (the RSS specs suggest a maximum length of 500 bytes per story (item) body).

So, do you have a valid RSS? Some high-profile sites (such as the Czech blogging site lide.cz, or even SlashDot) do not.

Section: /computers (RSS feed) | Permanent link | 0 writebacks

About:

Yenya's World: Linux and beyond - Yenya's blog.

Links:

RSS feed

Jan "Yenya" Kasprzak

The main page of this blog

Categories:

Archive:

Blog roll:

alphabetically :-)