Adam John Trickett
and 1 contributors


Introduction - A Simple Introduction To RSS


Rich Site Summary/Resource Description Framework technology is a simple method of a site describing what it has, so that another site can summarise the content, and provide links back to the original content.

RSS was pioneered by Netscape Communications for their my.netscape portal, and adopted quickly by many others, notably userland .


A simple XML file is produced by the site originating the articles. This file, easily obtainable by HTTP, is downloaded and parsed by the client, allowing the client to present the site summary in a way that suits the client. XML provides a simple human readable format that is easy to generate and read, using typical web tools.


The module came from a simple idea, gather RSS feeds, convert them into HTML fragments and then template them into a web page on a local web server.

Downloading RSS files

Originally I used wget , to pull files down from their server. Other tools to do this include cURL and any web browser. I cached the RSS feeds on my web server's disk space to reduce unnecessary downloading.

RSS Normalisation

RSS feeds come in several incompatible families. To make conversion to HTML simple I opted to convert all RSS feeds to RSS version 0.91 as this is very simple to convert to HTML via XSLT . You can turn off normalisation if you plan to use just one XSLT stylesheet.

The underlying XML::RSS (up to version 0.97) core can parse and interconvert RSS Versions 0.9, 0.91 and 1.0, versions of XML::RSS 0.98 and beyond can additionally process RSS version 2.0, though it is unlikely to ever be able to process the largely unused versions 0.92, 0.93, and 0.94, which are the evolutionary steps from 0.91 to 2.0.

RSS Conversion

Most online examples of RSS use the XML::RSS module to programmatically convert the feed into HTML, either directly or via using one of the many quality HTML templating tools. This I felt was inefficient and so I opted to use "XML Stylesheet Language Transformation", which is industry standard and does not require programming. There are several XSLT processors available: Saxon , Xalan , MSXML, and Sablotron , however the fastest and easiest one for Perl is Matt Sergeant's XML C Library for Gnome based a XML::LibXSL.

Script to Module

After developing the script to do this I realised that much of the code could be converted into a module and distributed to the world. After a popular post to Perlmonks, I have moved the module up to CPAN. The code should be considered as pre-release code, and the API may be extended in the future.


Some basic examples of how to use this module are provided in the examples folder.


  • - the home of key RSS developments

  • - a RSS to HTML online tool

  • Netscape Communications, home of the original specifications -

  • W3C Standards body: RDF and RDF Validator

  • - Blogspace RSS FAQ

  • RSS Versions

  • Ben Hammersley's Webloggery and recent book Content Syndication with RSS -

  • Dave Beckett's Resource Description Framework Resource Guide -

  • Mark Pilgrim and Sam Ruby's RSS Validator

  • brian d foy has an interesting, article in The Perl Review -

  • Mark Pilgrim has some nice RSS articles on (in Python): and

  • Bob DuCharme wrote a simple introduction to using XSLT with RSS on

  • The Perl-RSS Group has a nice selection of articles on

  • O'Reilly has a dedicated RSS section in O'Reilly Network: RSS DevCenter

  • See my RSS Article removed from this module:

Some Example RSS Feeds








See Also