Home arrow XML arrow Page 6 - 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 - Making your feed available
(Page 6 of 6 )

Save your feed with either the rss or xml extension.  The rss extension is used to indicate rss feeds, and the xml extension can be used since RSS 2.0 is xml based.  Either one can be used interchangeably.  If your site also contains older RSS feeds, I suggest using the rss extension to provide a sense of continuity.

Hereís my final RSS feed named feed.xml:

<?xml version="1.0" ?>

<rss version="2.0">

 

<channel>

<title>Popular Articles by Nilpo</title>

<description>Popular articles by Nilpo published by Developer
Shed.</description>

<link>http://www.nilpo.com</link>

<language>en-us</language>

<copyright>Copyright &copy; 2006,2007 Developer Shed, Inc.</copyright>

<managingEditor>contacteditor@developershed.com</managingEditor>

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

<lastBuildDate>Sat, 13 Jan 2007 00:00:01 GMT</pubDate>

<docs>http://blogs.law.harvard.edu/tech/rss</docs>

<ttl>1440</ttl>

<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>

<item>

   <title>SteelSound 3H Gaming Headset Review</title>

   <description>Dev Hardware - Peripherals - 1/10/07</description>

   <link>http://www.devhardware.com/c/a/Peripherals/SteelSound-3H-Gaming-
Headset-Review</link>

   <comments>http://www.devhardware.com/showblog/32760/SteelSound-3H-
Gaming-Headset-Review</comments>

   <guid>http://www.devhardware.com/c/a/Peripherals/SteelSound-3H-Gaming-
Headset-Review</guid>

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

</item>

</channel>

</rss>

Any time that you need to use special characters in your channel elements, they should be html encoded.  Youíll notice my use of the &copy; html entity in my channelís copyright element.

Once your have your RSS feed built, stop by feedvalidator.org to make sure that the syntax is valid.  Once it is you can publish it to your website.  Just provide a URL to the location of your rss or xml file for users to add to their news readers.  You can also submit the URL to many listing services.

Thatís all there is to it.  You now have a live RSS feed.  You can add additional items any time that new content becomes available on your site.  Many CMS programs provide RSS creation for you.  There are also a number of third party tools that can be used to generate the channel file for you.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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