RSS 2.0 Specification[z]

原创 2004年09月09日 11:01:00

RSS 2.0 Specification


What is RSS??leftArrow.gif

RSS Directory
folder.gif About this website
folder.gif Specifications
folder.gif Feeds
folder.gif Aggregators
folder.gif Validators
folder.gif Howtos/Articles
folder.gif Tools
folder.gif Utilities
RSS is a Web content syndication format.

Its name is an acronym for Really Simple Syndication.

RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.

A summary of RSS version history.

At the top level, a RSS document is a element, with a mandatory attribute called version, that specifies the version of RSS that the document conforms to. If it conforms to this specification, the version attribute must be 2.0.

Subordinate to the element is a single element, which contains information about the channel (metadata) and its contents.

Sample files?leftArrow.gif

Here are sample files for: RSS 0.91, 0.92 and 2.0.

Note that the sample files may point to documents and services that no longer exist. The 0.91 sample was created when the 0.91 docs were written. Maintaining a trail of samples seems like a good idea.

About this document?leftArrow.gif

A picture of a bouquet of flowers, the symbol of RSS 2.0.This document represents the status of RSS as of the Fall of 2002, version 2.0.1.

It incorporates all changes and additions, starting with the basic spec for RSS 0.91 (June 2000) and includes new features introduced in RSS 0.92 (December 2000) and RSS 0.94 (August 2002).

Change notes are here.

First we document the required and optional sub-elements of ; and then document the sub-elements of . The final sections answer frequently asked questions, and provide a roadmap for future evolution, and guidelines for extending RSS.

Required channel elements?leftArrow.gif

Here's a list of the required channel elements, each with a brief description, an example, and where available, a pointer to a more complete description.

Element Description Example
title The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website. News Headlines
link The URL to the HTML website corresponding to the channel.
description??????? Phrase or sentence describing the channel. The latest news from, a Spartanburg Herald-Journal Web site.

Optional channel elements?leftArrow.gif

Here's a list of optional channel elements.

Element Description Example
language The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C. en-us
copyright Copyright notice for content in the channel. Copyright 2002, Spartanburg Herald-Journal
managingEditor Email address for person responsible for editorial content. (George Matesky)
webMaster Email address for person responsible for technical issues relating to channel. (Betty Guernsey)
pubDate The publication date for the content in the channel. For example, the New York Times publishes on a daily basis, the publication date flips once every 24 hours. That's when the pubDate of the channel changes. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred). Sat, 07 Sep 2002 00:00:01 GMT
lastBuildDate The last time the content of the channel changed. Sat, 07 Sep 2002 09:42:31 GMT
category Specify one or more categories that the channel belongs to. Follows the same rules as the -level category element. More info. Newspapers
generator A string indicating the program used to generate the channel. MightyInHouse Content System v2.3
docs A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.
cloud Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds. More info here.
ttl ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source. More info here. 60
image Specifies a GIF, JPEG or PNG image that can be displayed with the channel. More info here.
rating The PICS rating for the channel.
textInput Specifies a text input box that can be displayed with the channel. More info here.
skipHours A hint for aggregators telling them which hours they can skip. More info here.
skipDays A hint for aggregators telling them which days they can skip. More info here.

?sub-element of ?leftArrow.gif

?is an optional sub-element of , which contains three required and three optional sub-elements.

is the URL of a GIF, JPEG or PNG image that represents the channel.

RSS 2.0 Specification

Contents What is RSS? Sample files About this document Required channel elements ...
  • thebesghost
  • thebesghost
  • 2006年08月07日 21:32
  • 780

USB 2.0 Specification

USB 2.0 SpecificationUniversal Serial Bus Revision 2.0 specification (.zip file format, size 9.73 MB...
  • yangchun301
  • yangchun301
  • 2007年12月22日 11:39
  • 2340

读取站点更新纪录(RSS2.0) - php篇 :新浪,雅虎新闻,csdn blog...

  • thefirstwind
  • thefirstwind
  • 2007年01月18日 11:48
  • 5993

OpenGL ES 2.0 Specification (OES 2.0规范)学习笔记

我学习OpenGL ES2.0的路线是,在已有图形学理解的基础上,先读OpenGL ES2.0 full spec,读完spec后再学习书本 Addison.Wesley.OpenGL.ES.2.0...
  • xdonx
  • xdonx
  • 2012年04月01日 17:41
  • 4727

Java 中如何实现RSS 2.0

最后努力一把,争取今天上排名,提前一天完成任务。好高兴。 这个同样是给初学的一点东西,请大家不要见笑。在这里我用 dom4j来写xml,希望ice不要再来找我麻烦了,我这个人喜欢用File啊,呵呵,虽...
  • lkmplwxf
  • lkmplwxf
  • 2006年05月07日 17:42
  • 1454


RSS和Atom之对比2008-01-19 23:28RSS和Atom之对比本文乃翻译,仅供参考,如有错误,请指正。原文地址: RSS and Atom目前syndication feed有不同的格式...
  • gnuhpc
  • gnuhpc
  • 2010年04月13日 21:39
  • 3940

Universal Serial Bus 3.0 Specification, Revision 1.0——6 Physical Layer

6.11 Receiver Detection 6.11.1 Rx Detect Overview The Receiver Detection circuit is implemented as p...
  • liglei
  • liglei
  • 2013年12月26日 14:58
  • 1576

USB Power Delivery Specification(USB-PD)

“USB Power Delivery Specification(USB PD)”是一个利用USB接口实现可供给100W电力的标准,旨在为用户提供更强大的电源充电方案。USB 2.0只面向便携终端的...
  • dyq1991
  • dyq1991
  • 2017年10月25日 19:33
  • 108


RSS(也叫聚合内容,Really Simple Syndication)现在用的已经很广啦,最初的RSS要追溯到1995年,当Ramanathan V. Guha和其他在苹果电脑公司的高级技术组开发...
  • qsky001
  • qsky001
  • 2009年10月12日 12:14
  • 2121

[RSS] RSS 2.0规范简介

RSS 2.0规范 RSS 2.0规范 RSS是 Really Simple Syndication的缩写(对rss2.0而言,是这三个词的缩写,对rss1.0而言则是RDF Site Summary...
  • azuresn
  • azuresn
  • 2005年10月15日 22:46
  • 584
您举报文章:RSS 2.0 Specification[z]