Thursday, August 17, 2006


Working with RSS files

There are several ways to start working with RSS files. Because RSS files are so simple, they can be created easily using any text or XML editor. Also, there are sites with Web forms that let you create a custom RSS file online. Finally, you will also want to try creating RSS files automatically. Open-source tools for Java, PHP, and Perl can help you get started.

Once you have created a simple RSS file, you will want to validate it. Post the RSS file on a publicly accessible area of your Web site, go to Netscape's site, submit your URL, and the validator will test your file for compatibility.

Publishing your RSS file

Once you have a valid RSS file available on your Web site, you can syndicate your content. You can do this in a publish and subscribe fashion -- you publish the information, and anyone who wants to can subscribe -- or you can submit your URL to content aggregators such as Moreover or Userland. Aggregators take content from a variety of sites and publish it in feeds. While your site's information could be mixed in with content from a variety of other suppliers, aggregators can help you dramatically extend the reach of your distribution.
You can also use RSS files for private distribution on intranets or extranets. Their simplicity makes RSS files a good way to publish information to a variety of systems.

Parsing RSS file

Once you start working with RSS files, you will want to parse the file back into discrete units of information. You can do this with the help of a variety of open-source tools written in Java, Perl, PHP, and even ASP. The parser reads a stream of XML text, identifies the opening and closing tags, finds the text enclosed in each tag, and creates handles to work with the parsed information. Once parsed, this information can be incorporated into dynamically generated pages.

Once you have tried your hand at RSS files, you'll find that there are many ways that you can use them. For example, you can write scripts that generate RSS summaries every time your site is updated, or scripts that periodically retrieve news from other sites and automatically update your own news page.

Author – Webshree
Email – webshree@gmail.com