Home arrow XML arrow Page 5 - Simple Web Syndication with RSS 2.0
XML

Simple Web Syndication with RSS 2.0


RSS was originally created in 1999 by Netscape as a channel description framework for their My Netscape Network. MNN was a portal system that allowed end users to selectively view new content from their choice of content providers. RSS was created as a means of gathering that content. Since its creation, RSS has been updated and expanded to handle a much wider range of content with a far broader range of uses.

Author Info:
By: Nilpo/Developer Shed Staff Writer
Rating: 5 stars5 stars5 stars5 stars5 stars / 20
January 24, 2007
TABLE OF CONTENTS:
  1. · Simple Web Syndication with RSS 2.0
  2. · Sharing your content
  3. · The XML:RSS 2.0 namespace
  4. · Expanding the channel
  5. · Expanding your content listing
  6. · Making your feed available

print this article
SEARCH DEVARTICLES

Simple Web Syndication with RSS 2.0 - Expanding your content listing
(Page 5 of 6 )

Now weíll take a moment to list the additional sub-elements that relate to your channel items.  The elements provide extra information specific to each piece of content offered.

Element

Description

author

The email address of the content author.

category

Adds a category for your item.

comments

The URL of a page containing comments, such as blog or forum, relating to the item.

enclosure

Describes the media attached to an item.

guid

A unique string used to identify your item.

pubDate

The publication date of the item

source

The RSS channel that the item came from.

Here Iíve added some additional elements to my channel item.

<item>

   <title>A New Toolbar Can Boost Your Web Site Traffic
Dramatically</title>

   <description>Dev Articles - Embedded Tools - 1/10/07</description>

   <link>http://www.devarticles.com/c/a/Embedded-Tools/A-New-Toolbar-Can-
Boost-Your-Web-Site-Traffic-Dramatically</link>

   <comments>http://www.devarticles.com/showblog/32759/A-New-Toolbar-Can-
Boost-Your-Web-Site-Traffic-Dramatically</comments>

   <guid>http://www.devarticles.com/c/a/Embedded-Tools/A-New-Toolbar-Can-
Boost-Your-Web-Site-Traffic-Dramatically</guid>

   <pubDate>Wed, 10 Jan 2007 00:13:01 GMT</pubDate>

</item>

Iíve used the comment sub-element to provide the URL for the article discussion blog.  For the guid I just used the URL of the article since itís always unique.  Not setting item guids can prevent news readers from updating your listing properly.  The pubDate has been set to show when the article went live on DevArticles.com.


blog comments powered by Disqus
XML ARTICLES

- Open XML Finally Supported by MS Office
- XML Features Added to Two Systems
- Using Regions with XSL Formatting Objects
- Using XSL Formatting Objects
- More Schematron Features
- Schematron Patterns and Validation
- Using Schematron
- Datatypes and More in RELAX NG
- Providing Options in RELAX NG
- An Introduction to RELAX NG
- Path, Predicates, and XQuery
- Using Predicates with XQuery
- Navigating Input Documents Using Paths
- XML Basics
- Introduction to XPath

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials