internet.com
You are in the: Small Business Computing Channelarrow
Small Business Technology
» ECommerce-Guide | Small Business Computing | Webopedia | WinPlanet
Webopedia.com
Enter a word for a definition... ...or choose a computer category.
 
 

menu
   Home
   Term of the Day
   New Terms
   Pronunciation
   New Links
   Quick Reference
   Did You Know?
   Categories
   Tech Support
   Technology Jobs
   About Us
   Link to Us
   Advertising

   rss/xmlrss/xml  

Become a Marketplace Partner



talk to us
   Submit a URL
   Suggest a Term
   Report an Error

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
commerce
  Be a Commerce Partner
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Home > Quick Reference

How to Create an RSS Feed
Part II: Optional RSS Elements <'tags'>, Syndication and More
Last updated: July 23, 2008

Last week we discussed RSS, the acronym used to describe the de facto standard for syndicating Web content, and we provided step-by-step instructions to help you create your own basic RSS feed using the required elements ("tags"). This week we'll discuss some of the non-required (optional) channel and item tags, discuss RSS specifications a little more in-depth, and also look at feed syndication and aggregators.

RECOMMENDED READING:
This article assumes you have read and followed the steps in "Part I: How to Create an RSS Feed" to create your own basic RSS document.


Optional Channel Elements

In creating our first RSS feed, we used only the basic required tags needed to create a working RSS document (also called an RSS feed). These elements, as defined by the RSS 2.0 specification, are called channel elements and the required <channel> elements include <title>, <link>, and <description>.

When creating an RSS document you can also use other optional <channel> sub-elements like <language>, <copyright>, <managingEditor>, <webMaster>, <generator>, <pubDate>, and others, as defined in the RSS 2.0 Specification.

<language> The language the channel is written in (view the RSS Language Codes here).
<copyright>
Copyright notice for content in channel
<managingEditor>
e-mail contact for editorial content
<webMaster>
e-mail contact for technical issues.
<pubDate>
The publication date for the content in the channel.
<lastBuildDate>
The last time the content of the channel changed.
<category>
Specify one or more categories that the channel belongs to.
<generator>
Indicate the program used to generate the channel.
<docs>
A URL that points to the documentation for the format used in the RSS file
<cloud>
Allows processes to register with a cloud to be notified of updates to the channel
<ttl>
"Time To Live". Specify a number of minutes that indicates how long a channel can be cached before refreshing.
<image>
A GIF, JPEG or PNG image that can be displayed with the channel.
<rating>
PICS rating for the channel.
<textInput>
A text input box that can be displayed with the channel.
<skipHours>
Tells aggregators telling them which hours they can skip.
<skipDays>
Tells aggregators telling them which days they can skip.

Optional channel elements are added in the beginning of your feed, after the open <channel> tag and before your first <item> tag. Using our example RSS code, this is how the code might look with several optional channel elements included. The basic required code we've done previously is in blue, with the new optional tags in blue/bold.

<?xml version="1.0"?>
<rss version="2.0">

<channel>
<title>Webopedia Headline Articles</title>
<link>http://www.webopedia.com/</link>
<description>Webopedia's knowledge articles offer information on common Internet and computer technologies and occurrences.</description>

<language>en-us</language>
<copyright>Copyright 1996-2008 Jupitermedia Corporation</copyright>
<managingEditor>no-one@jupitermedia.com</managingEditor>
<webMaster>no-one@jupitermedia.com</webMaster>

<item>
<title>How To Create an RSS Feed</title>
<link>http://www.webopedia.com/quick_ref/RSS.asp</link>
<description>How to create an RSS Feed.</description>
</item>

<item>
<title>Instant Messaging Abbreviations</title>
<link>http://www.webopedia.com/quick_ref/textmessageabbreviations.asp</link>
<description>This guide will help you decipher chat and instant messaging lingo.</description>
</item>

<item>
<title>Tips for Using Fonts</title>
<link>http://www.webopedia.com/DidYouKnow/Hardware_Software/2008/fonts.asp</link>
<description>Fonts are the core of your site design, so using them wisely is critical. We show you how with tips and tricks for creative results.</description>
</item>

<item>
<title>DVD Formats Explained</title>
<link>http://www.webopedia.com/DidYouKnow/Hardware_Software/2007/DVDFormatsExplained.asp</link>
<description>The following sheds light on DVD's different flavors and the incompatibility issues that the differing technologies have sprouted.</description>
</item>

</channel>
</rss>

 

Optional Item Elements
Just like you can add extra tags and the corresponding information within your <channel> tag, you can also add specific, but again optional, information between the <item> tags. Last week we discussed the main item elements (title, link, and description), but using the RSS 2.0 specification, for example offers additional elements that you can include between the open and close <item> tags. Examples of optional <item> tags include author, category, comments, and others, as defined in the RSS 2.0 Specification. Remember these optional tags will need to be included as open and closed tags.

<author> E-mail contact for item author
<category>
Put the item in one or more categories
<comments>
URL of a page for comments related to the item
<enclosure>
Describes a media object attached to the item.
<guid>
A string that uniquely identifies the item.
<pubDate>
When the item was published.
<source>
The RSS channel that the item came from

Copying only the first <item> from the code example above, here is the same required elements along with examples of some of the optional item elements included:


<item>
<title>How To Create an RSS Feed</title>
<link>http://www.webopedia.com/quick_ref/RSS.asp</link>
<description>How to create an RSS Feed.</description>
<author>webopedia@webopedia.com</author>
<pubDate>Friday, 21 July 2008</pubDate>
</item>

Know the Specifications
The best way to learn how to extend your RSS document past the basics is to actually start with the basic code (as shown in Part I: How to Create an RSS Feed), and  read the RSS specifications to learn the optional tags and how to use them when creating your RSS document. You can learn more about current RSS Specifications from the RSS Specifications Web site, or at the RSS Advisory Board Web site.

The most current specification (which happens to be 2.0.10 as of the time of publishing) can always be found at this URL (RSS Advisory Board Web site).
RSS 2.0 Specification: Version 2.0.10 of the RSS 2.0 specification, published by the RSS Advisory Board on Oct. 15, 2007.
RSS 2.0 Specification: This is the original RSS 2.0 specification published by UserLand Software on August 19, 2002.
RSS 0.92 Specification: This is the RSS 0.92 specification published by UserLand Software on December 25, 2000.
RSS 0.91 Specification: This is the RSS 0.91 specification published by UserLand Software on June 9, 2000.
RSS 0.91 Specification: This is the RSS 0.91 specification published by Netscape on July 10, 1999.
RSS 0.90 Specification: This is the RSS 0.90 specification published by Netscape on March 15, 1999.

If you have followed the tutorial through to this stage, you should now have your own newly created RSS feed (saved in xml format) with some optional elements. As we did last time, again you will want to use a Feed Validator to ensure the new elements you have added work. To do this, you just need to upload the document to a Web server, then enter the URL into the Feed Validator, like FEED Validator or RSS Validator.

Feed Editors
For those who want to produce an RSS feed, but have had difficultly creating one using this tutorial (or those who simply prefer not to play around with code), you can use a feed editor to create and manage your RSS documents. Much like any mark-up editor, feed dditors generally provide a GUI (some include a wizard-based GUI), allowing you to create the RSS document without touching, or even knowing any code. Here are a few Feed editor options, and a Google search will produce many more.

FeedForAll
FeedForAll Mac Software
Feed Editor
RSS Wizard (HTML to RSS converter)
Rapid RSS

RECOMMENDED READING:
"How to Make Your Own RSS Feeds"
on SmallBusinessComputing.com looks at ExtraLabs Software.s Feed Editor and NotePage.s FeedforAll.
"How to Create RSS feeds with Dreamweaver" on WebReference.com looks at using RSS Dreamfeeder, an application that allows you to reformat your content into an RSS feed within Dreamweaver.

What Do I Do With my RSS Feed?
Getting back to the basics, we need to remember that the point of creating RSS feeds is so that you have a way to tell others about the new content and headlines on your own Web site, or blog, without users having to load your Web site. With a feed, users can simply choose which headlines (or items) they are interested in and go directly to that content within your Web site. Others can also display your RSS feed on their site and your feed can also be fed to users on cellular phones, any of your co-brand or network sites, affiliate sites, and even distributed through various online news portals on RSS aggregation sites. You can also provide the RSS feed directly on your own site so you visitors can subscribe to the feed
and see new headlines via an RSS reader. This distribution of your RSS feed is called feed syndication.

There are many online sites where you can submit your RSS feed URL, just like there are a large number of Web search engines and directories where you can submit your Web site URL. Here are a few general submission sites to get you started:

Syndic8
Technorati Ping Us
Rocketinfo
Feed Farm

Avangate also offers a list of feed submission directories, as does the RSS-Specifications Web site. There are also some industry-specific RSS feed submission sites including those for health, technology, government, education, and other industry-specific feeds which you can find through a Google search.


By Vangie Beal
Last updated: July 23, 2008


Related Links

RSS Specifications  
This site is a comprehensive RSS reference detailing everything you need to know about RSS.

Extensible Markup Language (XML) 1.0 (Fourth Edition)
The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML has been designed for ease of implementation and for interoperability with both SGML and HTML.

XML.com: What Is RSS
The name "RSS" is an umbrella term for a format that spans several different versions of at least two different (but parallel) formats.

Six Apart: About Feeds
Many websites have links labeled "XML" or "RSS" or "Atom". All of these are ways of saying that you can find out about updates to that site without having to visit the site in your web browser.

The Evolution of RSS
We look at how RSS has evolved from its humble beginnings through present day and beyond. We survey all versions of RSS, including a feature comparison, a new RSS usage survey, and format and validation information.

RSS 2.0 at Harvard Law
RSS 2.0 Specification. RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.

Webopedia's "Did You Know...?" Section 
Use this Webopedia knowledge section for an in-depth overview of specific technologies and occurrences in the areas of Computer Science, The Internet, and Computer Hardware and Software.

Webopedia's Quick Reference Section 
Use this Webopedia reference section for information on common Internet and computer facts and occurrences.



internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs