Code | Example | Description |
---|---|---|
<?xml version="1.0"?> | N/A | Defines the document as XML 1.0. |
<rss version="0.91"> | N/A | Defines the document as RSS 2.0, and begins the RSS namespace. |
*channel | N/A | Begins the channel namespace. |
*title | Recipes | Title of the feed. It often matches the title of the originating HTML document. |
*link | http://www.example.com
| The URL back to the corresponding HTML page. |
*description | Recipes for the computer hacker and culinary slacker | Phrase or sentence describing the channel. |
*language | en | Defines the language the feed will be provided in. For a full listing of appropriate codes, see http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes. |
copyright | 2005 Paul Reinheimer | Defines the copyright restrictions on the document. |
managingEditor | paul@preinheimer.com (Paul Reinheimer) | The email address for the managing editor for the feed. Note that this element must contain a valid email address if present. |
webMaster | webMaster@preinheimer.com (Jon Doe) | Address for the webmaster of the feed. Note that this element must contain a valid address if present. |
pubDate | Sat, 07 Sep 2002 00:00:01 GMT | The publication date for the data within the channel. Date should be in the format specified in RFC 822; four year date preferred. |
lastBuildDate | Sat, 07 Sep 2002 09:42:31 GMT | The last time content in the channel was modified. |
docs | http://my.netscape.com/publish/formats/rss-spec-091.html | URL that points to the documentation to the feed. |
image | Parent for the next five elements. | |
*url | http://example.org/logo.png
| Address where the image can be located. |
*title | Our Logo | Title for the image, just like HTML. |
*link | http://example.org/ | Address where users should be sent after clicking on the image. |
description | Stylized PHP logo | Description of the image. |
width | 88 | Width of the image, maximum of 144. |
height | 25 | Height of the image, maximum of 400. |
rating | The PICS rating for the channel, see http://www.w3.org/TR/rdf-pics for more information. | |
textInput | Parent for the next four elements, most aggregators ignore this. | |
title | Submit | Label for the Submit button. |
description | Enter comments here | Explains the text input area. |
name | txtComments | Name for the text input area. |
link | http://example.org/scripts/comments.php | Address of the script that processes the input. |
skipHours | <hour>0</hour><hour>1</hour> | A set of up to 24 integers (0–24) indicating which hours aggregators may skip reading the feed. |
skipDays | <day>Saturday</day> <day>Sunday</day> | A set of up to seven days (Sunday–Saturday) indicating which days aggregators may skip reading the feed. |
Item | Parent for the next set of elements. | |
title | PHP 5.0.3 Released | Title for the element. |
link | http://example.org/news/story.php?item=142 | Link to the story in question. Note that it should link to the story, not the root page for the site. |
description | The PHP team is proud to announce the release of PHP 5.0.3, which contains several important bug fixes and security updates | Description for the element in question. |
Code | Example | Description |
---|---|---|
<?xml version="1.0"?> | N/A | Defines the document as XML 1.0. |
<rdf:RDF> | N/A | Defines the document as RSS 2.0, and begins the RSS namespace. |
<channel> | N/A | Begins the channel namespace. |
<title> | Recipes | Title of the feed. It often matches the title of the originating HTML document. |
<link> | http://www.example.com | The URL back to the corresponding HTML page. |
<description> | Recipes for the computer hacker and culinary slacker | Phrase or sentence describing the channel. |
image | Parent for the next five elements. | |
url | http://example.org/logo.png | Address where the image can be located. |
title | Our Logo | Title for the image, just like HTML. |
Link | http://example.org/ | Address where users should be sent after clicking on the image. |
textInput | Parent for the next four elements. Most aggregators ignore this. | |
title | Submit | Label for the submit button. |
description | Enter comments here | Explains the text input area. |
name | txtComments | Name for the text input area. |
link | http://example.org/scripts/comments.php | Address of the script that processes the input. |
Item | Parent for the next set of elements | |
title | PHP 5.0.3 Released | Title for the element. |
link | http://example.org/news/story.php?item=142 | Link to the story in question; note that it should link to the story, not the root page for the site. |
description | The PHP team is proud to announce the release of PHP 5.0.3, which contains several important bug fixes and security updates | Description for the element in question. |
Code | Example | Description |
---|---|---|
<?xml version="1.0"?> | N/A | Defines the document as XML 1.0. |
<rss version="2.0"> | N/A | Defines the document as RSS 2.0, and begins the RSS namespace. |
<channel> | N/A | Begins the channel namespace. |
<title> | Recipes | Title of the feed; it often matches the title of the originating HTML document. |
<link> | http://www.example.com | The URL back to the corresponding HTML page. |
<description> | Recipes for the computer hacker and culinary slacker | Phrase or sentence describing the channel. |
<language> | en | Defines the language the feed will be provided in. For a full listing of appropriate codes, see http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes. |
<copyright> | 2005 Paul Reinheimer | Defines the copyright restrictions on the document. |
managingEditor | paul@preinheimer.com (Paul Reinheimer) | The email address for the managing editor for the feed. Note that this element must contain a valid email address if present. |
webMaster | webmasater@preinheimer .com (Jon Doe) | Address for the webmaster of the feed. Note that this element must contain a valid address if present. |
pubDate | Sat, 07 Sep 2002 00:00:01 GMT | The publication date for the data within the channel. Date should be in the format specified in RFC 822; four year date preferred. |
lastBuildDate | Sat, 07 Sep 2002 09:42:31 GMT | The last time content in the channel was modified. |
category | News | Defines the category the feed belongs to, one optional attribute domain, used with forward slashes either to define the location of the category within a hierarchy, or to define the root page for the category in question. |
generator | Serendipity 0.7.1 - http://www.s9y.org/ | Defines the program used to generate the feed. |
docs | http://blogs.law.harvard.edu/tech/rss#syndic8 | URL that points to the documentation to the feed. |
cloud | cloud domain="rpc.sys .com"port="80" path="/ RPC2" registerProcedure= "pingMe" protocol="soap" | Allows a process to register itself to be informed when the feed is updated. |
ttl | 60 | Amount of time, in minutes, a channel can be cached before refreshing from the source. |
image | Parent for the next five elements. | |
url | http://example.org/logo.png | Address where the image can be located. |
title | Our Logo | Title for the image, just like HTML. |
Link | http://example.org/ | Address where users should be sent after clicking on the image. |
Width | 88 | Width of the image, maximum of 144. |
Height | 25 | Height of the image, maximum of 400. |
Rating | The PICS rating for the channel; see www.w3.org/TR/rdf-pics for more information. | |
textInput | Parent for the next four elements. Most aggregators ignore this. | |
title | Submit | Label for the submit button. |
description | Enter comments here | Explains the text input area. |
name | txtComments | Name for the text input area. |
link | http://example.org/scripts/comments.php | Address of the script that processes the input. |
skipHours | <hour>0</hour><hour>1</hour> | A set of up to 24 integers (0–24) indicating which hours aggregators may skip reading the feed. |
skipDays | <day>Saturday</day><day>Sunday</day> | A set of up to seven days (Sunday–Saturday) indicating which days aggregators may skip reading the feed. |
Item | Parent for the next set of elements. | |
title | PHP 5.0.3 Released | Title for the element. |
link | http://example.org/news/story.php?item=142 | Link to the story in question; note that it should link to the story, not the root page for the site. |
description | The PHP team is proud to announce the release of PHP 5.0.3, which contains several important bug fixes and security updates | Description for the element in question. |
Author | PHP Team | Author of the item. |
Category | Releases | Defines the category the item belongs to, one optional attribute domain, used with forward slashes either to define the location of the category within a hierarchy, or to define the root page for the category in question. |
Comments | http://example.org/comments.php?story=142 | URL for a page containing comments for the item. |
Enclosure | url="http://www.wroxnews.com/feedusage.pdf" length="38642" type="application/pdf" | Attaches a file to a specific item within the channel. url is the address for the resource, length is the length of the resource in bytes, and type is the media type for the resource. |
Guid | <guid isPermaLink="true"> ">http://example.org/story.php?story=142</guid> | Stands for globally unique identifier. This value should be unique across all items on the blog. Often the URL of the site or the feed is used as a portion of the value for two reasons: first, to ensure that it is unique across feeds, and second, when the isPerma-Link attribute is set to true, to provide a permanent link to the item. |
pubDate | Sat, 07 Sep 2002 06:12:11 GMT | Publication date for the item, same format as previous date elements. |
source | <source url="http://example.net/story">example.net</source> | Reference a source for the item in question, optionally include a URL for that source. |
Code | Example | Description |
---|---|---|
<?xml version="1.0"?> | Defines the document as XML 1.0. | |
<feed version="0.3" xmlns="http://purl.org/atom/ns#"> | Declares the document as a version 0.3 feed, and includes the root level xml atom namespace. | |
title | Example.com's New Feed | Title for the feed. |
link | <link rel="alternate" type="text/html" href="http://example.org/"/> | Link to root page for the site providing the feed. |
*modified | 2005-1-9T19:14:15Z | Date and time the feed was last modified GMT, reading (year)-(month)-(day)T(24 hour):(minute):(second)Z, with the T standing for time, and the Z for Zulu, or GMT. |
*author | Paul Reinheimer | Author of the feed, required unless every entry element contains an author element. |
contributor | Chris Shiflett | Lists people who contributed to the feed; feed may have multiple contributor elements. |
tagline | Cool Example Feed | Human-readable description or tagline for the feed. |
generator | <generator url="http://example.org/generator/" version="2.1">Example Feed Generator</generator> | Lists information on the software used to generate the feed. |
copyright | Copyright (C) 2004, Paul Reinheimer | Lists copyright information for the feed. |
info | ATOM 0.3 Feed | Human-readable information about the feed format. |
entry | Parent for the next ##TODO## children. | |
*title | New Feed Launched | Title for the entry. |
*link | <link rel="alternate" type="text/html" href= "http://example.org/feed.php?entry=1"/> | Link for URL associated with the entry; an entry may contain multiple link elements, as long as the "type" attribute differs. |
author | Paul Reinheimer | Author of the entry, required if there is no root author element. Must not be present if there is a root author element. |
contributor | Chris Shiflett | Lists people who contributed to the feed; feed may have multiple contributor elements. |
id | 1 | Globally unique identifier for the entry; must be unique for the feed and may not change over time. |
*modified | 2005-1-9T19:14:15Z | Date and time the entry was last modified, same format as root modified element. |
*issued | 2005-1-9T17:14:15Z | Date and time the entry was first published. |
created | 2005-1-9T17:14:15Z | Date and time the entry was created, if not present it is assumed to match issued. |
summary | Example.org is pleased to announce the publication of a new feed in the ATOM format. | A short summary of the entry. |
content | Example.org is pleased to announce the publication of a new feed in the ATOM format. We will be using this feed to keep our loyal users in the loop with all of our new developments. | Full content of the entry. |