Original English:
/tech/rss
Chinese explanation on ibm:
/developerWorks/cn/xml/x-rss20/
RSS 2.0 Overview
RSS is an XML dialect used to chain Web content and metadata. RSS 0.91 is the most commonly used of several available versions. For the new RSS feed, a better approach is to use version 2.0, as this is the current specification and as mentioned earlier, it is backward compatible with 0.91.
Dave Winer has written the standard version 2.0. Modifications to specifications may become difficult to use, or damage existing applications, and he consciously avoids this. Winer summed up his thoughts: "Keep it simple. This is the value of RSS. Anyone who has a little bit of HTML can understand RSS. This is extremely important!"
This specification is published under the Creative Commons license (see Resources). This means you can copy and distribute the specification for free and do derivative work, and you can use it freely for commercial work. An advisory committee is responsible for updating specifications, promoting specifications and preparing documents.
RSS file form
The RSS file consists of a <channel> element and its child elements. In addition to the channel content itself, </channel><channel> also contains elements representing channel metadata in the form of an item—such as <title>, <link> and <description>. Items are usually the main part of the channel and contain content that changes frequently.
Channel
A channel generally has three elements, providing information about the channel itself:
<title>: The name of the channel or feed.
<link>: The URL of the Web site or site area associated with this channel.
<description>: Briefly introduce what this channel does.
Many channel sub-elements are optional. Commonly used <image> elements contain three necessary child elements:
<url>: The URL representing the GIF, JPEG, or PNG image of the channel.
<title>: Description of the image. When the channel is rendered in HTML, it is used as the ALT attribute of the HTML <image> tag.
<link>: The URL of the site. If the channel is rendered in HTML, the image serves as a link to this site.
<image> There are three optional child elements:
<width>: Number, representing the pixel width of the image, the maximum value is 188, and the default value is 88.
<height>: Number, indicating the pixel height of the image. The maximum value is 400, and the default value is 31.
<description>: Contains text, which can be used as a title attribute for the link element formed around the image when rendered.
There are also many other optional channel elements that can be used. Most are self-evident:
<language>:en-us
<copyright>:Copyright 2003, James Lewin
<managingeditor>:dan@spam_me.com (Dan Deletekey)
<webmaster>:dan@spam_me.com (Dan Deletekey)
<pubdate>:Sat, 15 Nov 2003 0:00:01 GMT
<lastbuilddate>:Sat, 15 Nov 2003 0:00:01 GMT
<category>:ebusiness
<generator>:Your CMS 2.0
<docs>:/tech/rss
<cloud>: Allows the process to register as "cloud" and notifies it when the channel is updated, implementing a lightweight publish-subscribe protocol for the RSS feed.
<ttl>: Survival time is a number that indicates the number of minutes the feed is buffered before refreshing.
<rating>: PICS reviews about this channel.
<textinput>: Defines the input box that can be displayed with the channel.
<skiphours>: Tell the aggregator which hours of updates can be ignored.
<skipdays>: Tell the aggregator that updates can be ignored.
item
Items are usually the most important part of the feed. Each item can be a record of a certain weblog, full document, movie review, classified ad, or any content you wish to chain with the channel. Other elements in the channel may remain unchanged, but the items often change.
You can have as many items as you like. The previous specification limit was 15 items, which is still a good upper limit if you want to maintain backward compatibility.
Elements of news items
Each item usually contains three elements:
<title>: This is the name of the item, which is converted into a title in HTML in standard applications.
<link>: This is the URL of this item. title usually serves as a link to a URL contained in the </link><link> element.
<description>: Usually used as a summary or supplement to the URL pointed to in link.
All elements are optional, but an item either contains at least one <title> or a <description>.
There are other optional elements for the item:
<author>: The author’s e-mail address.
<category>: Supports organized records.
<comments>: URL of the comment page about the item.
<enclosure>: Supports media objects related to this item.
<guid>: The only permanent link associated with this item.
<pubdate>: When was this item published?
<source>: Which RSS channel is the item from? It is very useful when aggregating items together.
RSS 2.0 specification
channel part
title channel name must
The URL of the link channel must
Description Channel Description Must
language The language used in the channel article is optional
copyright channel copyright statement optional
managingEditor manager's email option
webMaster Webmaster email optional
pubDate channel release date optional (note that the time must be strictly compliant with RFC-822)
lastBuildDate channel last modified date optional
category Channel category available
Generator Generate the program name of the channel. Optional
docs The URL of the RSS file is optional
ttl validity period optional
image channel icon optional
rating Channel level optional
skipHours hours to skip
skipDays skip days available
item part
title title must
link link to this article must
description Description or summary Must
author Address’s email option
category Category of this article Optional
Comments Links to comments for this article Optional
enclosure The files attached to this article are optional
guid The only identification mark of this article (there is no specification at present, generally expressed by the article link)
pubDate publication time optional
source: Article source link: Optional
example:
/tech/rss
Chinese explanation on ibm:
/developerWorks/cn/xml/x-rss20/
RSS 2.0 Overview
RSS is an XML dialect used to chain Web content and metadata. RSS 0.91 is the most commonly used of several available versions. For the new RSS feed, a better approach is to use version 2.0, as this is the current specification and as mentioned earlier, it is backward compatible with 0.91.
Dave Winer has written the standard version 2.0. Modifications to specifications may become difficult to use, or damage existing applications, and he consciously avoids this. Winer summed up his thoughts: "Keep it simple. This is the value of RSS. Anyone who has a little bit of HTML can understand RSS. This is extremely important!"
This specification is published under the Creative Commons license (see Resources). This means you can copy and distribute the specification for free and do derivative work, and you can use it freely for commercial work. An advisory committee is responsible for updating specifications, promoting specifications and preparing documents.
RSS file form
The RSS file consists of a <channel> element and its child elements. In addition to the channel content itself, </channel><channel> also contains elements representing channel metadata in the form of an item—such as <title>, <link> and <description>. Items are usually the main part of the channel and contain content that changes frequently.
Channel
A channel generally has three elements, providing information about the channel itself:
<title>: The name of the channel or feed.
<link>: The URL of the Web site or site area associated with this channel.
<description>: Briefly introduce what this channel does.
Many channel sub-elements are optional. Commonly used <image> elements contain three necessary child elements:
<url>: The URL representing the GIF, JPEG, or PNG image of the channel.
<title>: Description of the image. When the channel is rendered in HTML, it is used as the ALT attribute of the HTML <image> tag.
<link>: The URL of the site. If the channel is rendered in HTML, the image serves as a link to this site.
<image> There are three optional child elements:
<width>: Number, representing the pixel width of the image, the maximum value is 188, and the default value is 88.
<height>: Number, indicating the pixel height of the image. The maximum value is 400, and the default value is 31.
<description>: Contains text, which can be used as a title attribute for the link element formed around the image when rendered.
There are also many other optional channel elements that can be used. Most are self-evident:
<language>:en-us
<copyright>:Copyright 2003, James Lewin
<managingeditor>:dan@spam_me.com (Dan Deletekey)
<webmaster>:dan@spam_me.com (Dan Deletekey)
<pubdate>:Sat, 15 Nov 2003 0:00:01 GMT
<lastbuilddate>:Sat, 15 Nov 2003 0:00:01 GMT
<category>:ebusiness
<generator>:Your CMS 2.0
<docs>:/tech/rss
<cloud>: Allows the process to register as "cloud" and notifies it when the channel is updated, implementing a lightweight publish-subscribe protocol for the RSS feed.
<ttl>: Survival time is a number that indicates the number of minutes the feed is buffered before refreshing.
<rating>: PICS reviews about this channel.
<textinput>: Defines the input box that can be displayed with the channel.
<skiphours>: Tell the aggregator which hours of updates can be ignored.
<skipdays>: Tell the aggregator that updates can be ignored.
item
Items are usually the most important part of the feed. Each item can be a record of a certain weblog, full document, movie review, classified ad, or any content you wish to chain with the channel. Other elements in the channel may remain unchanged, but the items often change.
You can have as many items as you like. The previous specification limit was 15 items, which is still a good upper limit if you want to maintain backward compatibility.
Elements of news items
Each item usually contains three elements:
<title>: This is the name of the item, which is converted into a title in HTML in standard applications.
<link>: This is the URL of this item. title usually serves as a link to a URL contained in the </link><link> element.
<description>: Usually used as a summary or supplement to the URL pointed to in link.
All elements are optional, but an item either contains at least one <title> or a <description>.
There are other optional elements for the item:
<author>: The author’s e-mail address.
<category>: Supports organized records.
<comments>: URL of the comment page about the item.
<enclosure>: Supports media objects related to this item.
<guid>: The only permanent link associated with this item.
<pubdate>: When was this item published?
<source>: Which RSS channel is the item from? It is very useful when aggregating items together.
RSS 2.0 specification
channel part
title channel name must
The URL of the link channel must
Description Channel Description Must
language The language used in the channel article is optional
copyright channel copyright statement optional
managingEditor manager's email option
webMaster Webmaster email optional
pubDate channel release date optional (note that the time must be strictly compliant with RFC-822)
lastBuildDate channel last modified date optional
category Channel category available
Generator Generate the program name of the channel. Optional
docs The URL of the RSS file is optional
ttl validity period optional
image channel icon optional
rating Channel level optional
skipHours hours to skip
skipDays skip days available
item part
title title must
link link to this article must
description Description or summary Must
author Address’s email option
category Category of this article Optional
Comments Links to comments for this article Optional
enclosure The files attached to this article are optional
guid The only identification mark of this article (there is no specification at present, generally expressed by the article link)
pubDate publication time optional
source: Article source link: Optional
example: