XML
  Home arrow XML arrow Page 5 - Simple Web Syndication with RSS 2.0
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
XML

Simple Web Syndication with RSS 2.0
By: Nilpo/Developer Shed Staff Writer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 12
    2007-01-24

    Table of Contents:
  • Simple Web Syndication with RSS 2.0
  • Sharing your content
  • The XML:RSS 2.0 namespace
  • Expanding the channel
  • Expanding your content listing
  • Making your feed available

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    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.

    More XML Articles
    More By Nilpo/Developer Shed Staff Writer


       · This is the first of a 3 part series that deals with Web Syndication. We start off...
       · Awesome article! I've followed the instructions and have successfully set up a RSS...
       · Thanks for the comments. I'm glad that you found this article helpful. :)
     

    XML ARTICLES

    - 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
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek