Barton's Picture

Barton Phillips Home Page

Our domains are bartonphillips.org and bartonphillips.com
You got here via www.bartonphillips.org.

Granby Rotary Club
Granby Monday Night Poker Group
Applied Technology Resouces Inc.
Thunderbird and Firefox Tips and Tricks


RSS Generator

I have written a Perl program that makes generating RSS feeds pretty easy. It lets you add markup to your html or php files and then generate an xml file in RSS format. Here is an example of how the markup looks:

Once the markup is in the page run the Perl program:

The default setting, which can be edited in the configuration section of the rssfeed.pl file will create a rssfeed.xml file (or whatever you have named it.) Now all you need to do is place a link in the head section of your web page like this:

or add a link in your code like this:

The RSS Generator file is rssfeed.pl Download File


Latest version of RSS Generator

Now you can add more attributes to the <rssfeed> tag. The new attributes are:

These attributes let you add information that is not in the markup. Also it makes it easy to have a text file that has your RSS information and use the url, page and anchor attributes to specify the target for the article. Here is an example of how this could work:

This could be placed in a separate text file, or within a html file if you placed html comment marks around the rssfeed tags.

The noesc attribute takes not agruments. If present it keeps the section from being html encoded, that is, < and > are not turned into &lt; and &gt;.

The perl file rssfeed.pl has documentation in the code and also via options -h, --help, -m, or --man at the command line.

Note: the application requires the following packages:

View the man

All of our code is released under the MIT and GPL License


PHP Slide Show Class

You can find a Slide Show Class that I wrote on php classes logo


Subscribe to this page to keep up to date on the RSS Generator XML Logo

Internet Storm Center Infocon Status

About This Site

Web Stats

Valid XHTML 1.0! Valid CSS!

Copyright © 2009 Barton L. Phillips
Barton Phillips, PO Box 4152, 122 Fairway Lane, Granby, CO 80446-4152
bartonphillips@gmail.com