Java Reference
In-Depth Information
<item rdf:about="http://www.httprecipes.com/1/14/">
<title>Chapter 14: Well Behaved Spiders and Bots</title>
<link>http://www.httprecipes.com/1/14/</link>
<description>
Learn to create bots that are well behaved.
</description>
</item>
</rdf:RDF>
The file begins with some header information about the feed. The <title> tag speci-
fies the title of the RSS feed. The <link> tag specifies the location of the site producing the
RSS feed. The <description> tag gives a description of the feed.
There are also several <item> tags. These are the individual items, or articles, that
the feed provides information about. Inside of the <item> tag, you will find several other
tags that define this item. The <title> tag gives the name of this item. The <link> tag
gives a link to this item, which is a URL. The <description> tag provides a description
of this item.
Understanding RSS 2.0
RSS 2.0, like RSS 1.0, allows a web site to publish a list of links to that site's newest con-
tent. Also like RSS 1.0, an RSS 2.0 feed is always accessed directly from a URL. The main
difference is in the placement of the elements. To see a sample RSS 2.0 feed from the HTTP
recipes site, access the following URL:
http://www.httprecipes.com/1/12/rss2.xml
The contents of this URL are shown in Listing 12.2.
Listing 12.2: An RSS 2.0 File
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>HTTP Recipes</title>
<link>http://www.httprecipes.com/</link>
<description>A collection of HTTP programming recipes.
</description>
<language>en-us</language>
<pubDate>Sun, 8 Oct 2006 04:00:00 GMT</pubDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
Search WWH ::




Custom Search