Copyright © tutorialspoint.com
Here is the structure of an RSS 0.91 document:
<?xml version="1.0"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> <channel> <title>...</title> <link>...</link> <description>...</description> <language>...</language> <rating>...</rating> <copyright>...</copyright> <pubDate>...</pubDate> <lastBuildDate>...</lastBuildDate> <docs>...</docs> <managingEditor>...</managingEditor> <webMaster>...</webMaster> <skipHours> <hour>...</hour> </skipHours> <skipDays> <day>...</day> </skipDays> <image> <title>...</title> <url>...</url> <link>...</link> <width>...</width> <height>...</height> <description>...</description> </image> <item> <title>...</title> <link>...</link> <description>...</description> </item> ......More item tags..... <textInput> <title>...</title> <description>...</description> <name>...</name> <link>...</link> </textInput> </channel> </rss> |
Here is the detail of all optional and mandatory tags related to RSS 0.91. Check out given example to prepare a RSS v0.91 feed for your website.
NOTE: All the tag are case sensitive and should be used carefully.
Here is the list of all optional and mandatory tags related to RSS 0.91.
As an XML application, an RSS document is not required to begin with an XML declaration. It should start with XML version identifier tag.
Here is list of RSS v0.91 Supported Encodings.
Always and exact. Optional encoding attribute (default is UTF-8).
Similar to a valid XHTML document, it is required to specify a document type.
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
Always and exact.
500 characters.
<rss version="0.91">
Always and exact.
500 characters.
There should be one channel start tag in each RSS0.91 File.
<channel>
Required. Maximum 1 per RSS file.
An identifying string for a resource. When used in an item, this is the name of the item's link. When used in an image, this is the Alt text for the image. When used in a channel, this is the channel's title. When used in a textinput, this is the the textinput's title.
<title>TutorialsPoint</title>
Required.
1-100 characters.
A channel will have a description tag as described below:
<description>Your source for tutorials, references and manuals!</description>
Required.
1-500 characters.
This is the link to your home page and required for a channel.
<link>http://www.tutorialspoint.com</link>
Required.
1-500 characters.
This specifies the language of your channel (website).
<language>[ language code here ]</language>
Here is list of RSS v0.91 Supported Languages.
Required.
2-25 characters.
For a complete detail on how to use Channel Rating check Using PICS Ratings
<rating>[ PICS rating here ]</rating>
Optional.Maximum 1 per channel.
20-500 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<copyright>Copyright 2007, TutorialsPoint</copyright>
Optional and ignored by Netcenter. Maximum 1 per channel
1-100 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<pubDate>Thu, 19 Jul 2007 07:00:00 GMT</pubDate>
Optional and ignored by Netcenter. Maximum 1 per channel
1-100 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<lastBuildDate>Thu, 19 Jul 2007 16:20:26 GMT </lastBuildDate>
Optional and ignored by Netcenter. Maximum 1 per channel
1-100 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<docs>http://my.userland.com/stories/storyReader$11</docs>
Optional and ignored by Netcenter. Maximum 1 per channel
1-500 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<managingEditor>mohtashim@tutorialspoint.com</managingEditor>
Optional and ignored by Netcenter. Maximum 1 per channel
1-100 characters.
This tag is allowed in an RSS 0.91 file, but Netcenter does not actually use this tag or its data. The RSS 0.91 format supports this tag for the benefit of other sites that might make use of the tag and its data.
<webMaster>mohtashim@tutorialspoint.com</webMaster>
Optional and ignored by Netcenter. Maximum 1 per channel
1-100 characters.
A list of <hour>s indicating the hours in the day, GMT, when the channel is unlikely to be updated. If this sub-item is omitted, the channel is assumed to be updated hourly.
<skipHours>
Optional, Ignored by Netcenter. Maximum 1 per channel.
If you are using skipHours tag then it is required to use this tag as well.
<hour>7</hour>
Required, if <skipHours>. Maximum 24 per <skipHours>. element.
Numeric Value: 0 - 23
If you are using skipHours tag then it is required to use this tag as well.
</skipHours>
Required, if <skipHours>
A list of <day>s of the week, in English, indicating the days of the week when your channel will not be updated. As with activeHours, if you know your channel will never be updated on Saturday or Sunday, for example.
<skipDays>
Optional, Ignored by Netcenter. Maximum 1 per channel.
If you are using skipDays tag then it is required to use this tag as well.
<day>Monday</day>
Required, if <skipDays>. Maximum 7 per <skipDays>. element.
1-10 characters
If you are using skipDays tag then it is required to use this tag as well.
</skipDays>
Required, if <skipDays>
You can have one image start tag inside a channel. Syntax is as follows
<image>
Optional. Maximum 1 per channel
If you are using image tag then it is required to use this tag as well.
<title>TutorialsPoint Logo</title>
Required, if <image> tag is available.
1-500 characters.
Location to load a resource from. Note that this is slightly different from the link tag, which specifies where a user should be re-directed to if a resource is selected.
<url>http://www.tutorialspoint.com/images/to-logo.gif</url>
Required, if <image> tag is available.
1-500 characters.
If you are using image tag then it is required to use this tag as well.
<link>http://www.tutorialspoint.com/</link>
Optional, if <image> tag is available.
1-500 characters.
If you are using image tag then it is optional to use this tag as well.
<width>[ numeric value here ]</width>
Optional, if <image> tag is available.
Numeric Value: 1-144 (Default is 88)
If you are using image tag then it is optional to use this tag as well.
<height>[ numeric value here ]</height>
Optional, if <image> tag is available.
Numeric Value: 1-400 (Default is 31)
If you are using image tag then it is optional to use this tag as well.
<description>Articles, discussions, builds, and more...</description>
Optional, if <image> tag is available.
1-100 characters.
If you are using image tag then it is required to use this tag as well.
</image>
Required, if <image> tag is available.
This is an optional tag and you can have 0-15 item tags with-in a channel tag.
<item>
Optional. 0-15 items allowed per channel
If you are using title tag then it is required to use this tag as well.
<title>Learning RSS</title>
Required, if <title> tag is available.
1-100 characters.
If you are using title tag then it is required to use this tag as well.
<link>http://www.tutorialspoint.com/rss/index.htm</link>
Required, if <title> tag is available.
1-500 characters.
If you are using title tag then it is optional to use this tag as well.
<description>RSS Tutorials Online. Read more about it in this discussion...>/description>
Optional, if <title> tag is available.
1-500 characters.
If you are using title tag then it is required to use this tag as well.
</item>
An input field for the purpose of allowing users to submit queries back to the publisher's site. This element should have a title, a link (to a cgi or other processor), a description containing some instructions, and a name, to be used as the name in the HTML tag <input type=text name="[name]">
<textInput>
Optional. Maximum 1 per channel.
If you are using textInput tag then it is required to use this tag as well.
<title>Send</title>
Required, if <textInput> tag is available.
1-100 characters.
If you are using textInput tag then it is required to use this tag as well.
<description>Comments about TutorialsPoint?</description>
Required, if <textInput> tag is available.
1-500 characters.
If you are using textInput tag then it is required to use this tag as well.
<name>[ value of name= attribute of input tag here ]</name>
Required, if <textInput> tag is available.
1-20 characters.
This is the link to thr script which will process passed data. If you are using textInput tag then it is required to use this tag as well.
<link>http://www.tutorialspoint.com/cgi-bin/sampleonly.cgi</link>
Required, if <textInput> tag is available.
1-500 characters.
If you are using textInput tag then it is required to use this tag as well.
<textInput>
Required, if <textInput> tag is available.
One end channel is required for a channel start tag.
</channel>
Required
This is closing tag for an RSS0.91 document.
</rss>
Required
Although an RSS 0.91 file is an XML document, RSS 0.91 extends XML by supporting a full set of HTML entities. If you want to use special characters such as ampersands (&) in <url> or <link> tags, you must substitute the appropriate decimal or HTML entities for those characters.
Check for a complete set of HTML entities.
Here is the example feed files which shows how to write RSS Feed using version 0.91.
<?xml version="1.0"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd"> <rss version="0.91"> <channel> <title>TutroialsPoint</title> <link>http://www.tutorialspoint.com</link> <description> Online Tutorials and Reference Manuals. </description> <language>en-us</language> <rating> (PICS-1.1 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi North America Server" for "http://www.rsac.org" on "1996.04.16T08:15-0500" r (n 0 s 0 v 0 l 0)) </rating> <image> <title>TutroialsPoint</title> <url>http://www.tutorialspoint.com/images/to-logo.gif</url> <link>http://www.tutorialspoint.com</link> <width>88</width> <height>31</height> <description> Tutorials, Articles, discussions,and more... </description> </image> <item> <title>RSS Tutorials</title> <link>http://www.tutorialspoint.com/rss/index.htm</link> <description> Learn RSS in simple and easy steps. </description> </item> <item> <title>PHP Tutorials</title> <link>http://www.tutorialspoint.com/php/index.htm</link> <description> Learn PHP in simple and easy steps. </description> </item> <textInput> <title>Send</title> <description>Comments about TutoprialsPoint</description> <name>responseText</name> <link> http://www.tutorialspoint.com/cgi-bin/tp-contact.cgi </link> </textInput> </channel> </rss> |
A specific file-extension for an RSS 0.91 document is not required. Either .rdf or .xml is recommended, the former being preferred.
Check following link RSS 0.91 DTD.
Copyright © tutorialspoint.com