RSS

From MobileRead
Jump to: navigation, search

RSS stands for Really Simple Syndication. Its intent is to provide a format for data that can be used by a program to retrieve data from a file somewhere else on the Internet, such as a daily blog, that has been modified. It is a specific implementation of an XML format. Programs that can read this data can use it to:

The purpose is for individuals and companies to post information on their web sites and allow the user to just retrieve changed data just when they need to. This differs from just sending the new data out via email in that it is less intrusive being totally under control of the receiver of the data. The data is often a blog or news items that the user is interested in. The user subscribes or sets up their reader to obtain information on the site on a periodic basis.

An RSS page is usually used in conjunction with an html page. The RSS file points to the html page that matches the data on the site so that the user can click on the data and go directly to the site. Data in a RSS feed is generally divided into 3 types.

[edit] Sample File

Here is an example of file that is in RSS format. The file has dummy data that is intended to explain, by example, the contents that is required. This can be copied and used to build a working RSS feed side. The file name can be any name and the extension is usually xml or rss.

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0"> 

<channel>
<title>Title for the site.</title>
<link>http://www.yoursite.com/rsslink.html</link>
<description>Description of the site contents.</description>
<language>en-us</language>
<copyright>Copyright ©2007 All rights reserved.</copyright>
<pubDate>
Tue, 26 Jun 2007 13:09:09 PST
</pubDate>
<lastBuildDate>
Tue, 26 Jun 2007 13:09:09 PST
</lastBuildDate>
<category>Category of this tip</category>
<generator>Person or company that generated the tip</generator>
<docs>http://www.feedvalidator.org/docs/rss2.html</docs>
<ttl>1440</ttl>
<image>
<title>Title for the image</title>
<url>http://www.yoursite.com/images/rs_logo.gif</url>
<link>http://www.yoursite.com/file.html</link>
<width>144</width>
<height>77</height>
</image>
 
<item>
<link>http://www.yoursite.com/rsslink.html#entry1234
</link><title>
This is the title of the entry for this particular entry
</title><description><![CDATA[<p> 
Here is where the text goes. The data between the two item tags can
be repeated indefinitely in the file to have multiple entries. When
a new entry is made the date at the up of the file (pub date and build
date should be updated to match the date of the entry) Note that the
cdata tag allows html constructions to be part of this description.  
</p>]]>
</description><category>
This is the category to allow filtering (should be short)
</category><guid isPermaLink="true">
http://www.yoursite.com/rsslink.html#entry1234
</guid><pubDate>
Mon, 5 Feb 2007 12:09:09 PST
</pubDate></item>

</channel>
</rss>

There is some redundancy in the file as different readers may key off of different fields. Be sure the dates are consistent. They must be specified using RFC 822 formatted timestamps.

[edit] Tips

XML Icon

[edit] For more information

NEWSTOEBOOK is a web-based service that makes ePUB or MOBI book from any RSS/Atom feed, or Google Reader subscription.

rss2book is a conversion program for RSS feeds to make them readable on eBook Readers.

A competing format is called Atom.

Personal tools
Namespaces
Variants
Actions
Navigation
MobileRead Networks
Toolbox
Advertisement