superoperator.com
Search:    Site Home >> About Us >> Privacy of Info >> Terms of Use >> Place Your Link >> Submit Article   
Add Url
 
 

Business & Services

 

Eating & Drinking

 

Teens & Kids

 

Recreation & Entertainment

 

Games & Play

 

Vehicles & Automotive

 

Computers & Software

 

Home Family & Garden

 

Investment & Finance

 

Travel & Vacation

 

People & Society

 

Fitness & Health

 

Law & Politics

 

Estate & Realty

 

Shopping & Auction

 

Self Help

 

Creative Arts

 

Healthcare & Medicine

 

Academics & Education

 

Technology & Science

 

Jobs & Employment

 

Sports & Adventure

 

Events & News

 

Relationship & Lifestyle


 

Site Home » Events & News » RSS News Syndication
 

Understanding RSS - Part Seven - The Elements Within the "Item" Element

 
Author: Ted Gross
 

This is Part Seven, "The Basic Parts of The Item Element" a continuation from my articles on RSS

  • Part One - RSS Mania Addiction - An Introduction to RSS and the Terminology

  • Part Two - Outline of How to Create an RSS Feed

  • Part Three - The Template File

  • Part Four - The Basic Elements of the Channel Element

  • Part Five - How The RSS Feed Works & Some Programming Constructs

  • Part Six - RSS Channel Sub-Elements Specifically Image & How To Use It

Now we have covered the major points in the "Channel" element, we will now cover the Item element. Hang on to your seats, but you should breeze through this part fairly easily already. Remember our purpose is to create an RSS feed template that you can use, and what is known as a "well-formed XML document" which will pass validation with flying colors! (And make you into a techie as well!)

(For the techies among us I am not going into the "dc:" tags from RSS 1.0 For those who are interested they should take a look at W3C docs on RSS 2.0 and also view the RSS 2.0 specifications.)

First to get you familiar with the lingo we will use here, these are the possible inclusions in your "Item" tag. Some of them should be familiar. Pay Attention that the syntax is NOT the same for some specifically for enclosure & source.

  1. <TITLE></TITLE>

  2. <LINK></LINK>

  3. <DESCRIPTION></DESCRIPTION>

  4. <AUTHOR></AUTHOR>

  5. <CATEGORY></CATEGORY>

  6. <COMMENTS></COMMENTS>

  7. <ENCLOSURE "INFORMATION OF ENCLOSURE GOES HERE" />

  8. <GUID></GUID>

  9. <PUBDATE></PUBDATE>

  10. <source url="http://www.yaddayadda/yadda.rss">Babble</SOURCE>

Some of the above are simple, others can get complicated. So we will work on this step by step and in the end you will have an incredible RSS feed. Remember you do NOT need to place all of these in your feed. You can get away with the title, link & description (and you should put the pubdate in as well). HOWEVER, these are important commands and some like enclosure can open up worlds of possibilities for you.

So first the descriptions and explanations.

  1. Our Title here is the title of this item within the Channel. Remember this is our "Chapter Heading". Fairly easy. So here we would want to put, "Heaven Scent Perfume At 50% Discount." So this is how our title will read: <title>Heaven Scent Perfume At 50% Discount</title>Voila!

  2. Next comes our all important link. Where to find the data. So here Randy has a whole web page devoted to selling Heaven Scent perfume. <link>http://www.randypandy.com/perfumes/heavenscent.html</link>Voila! Again. But don't get carried away yet!

  3. Okay our description is cool. Hey all we want here is to define the perfume. Right? Well, lets do that for the time being. <description>Heaven Scent Perfume the Smell your lover will die for. Created especially by Skunk Perfumes it is their newest and best selling perfume on the market today. Purchase a beautifully shaped skunk bottle with this incredible perfume and get a whopping 50% off! And if you purchase over $100 we will throw in Free overnight delivery as well!</description>Now don't get carried away just yet. Sure we have a description. But what if we want to get a picture in that description? What if we want the user to see in his aggregator not just words but an image as well? Well, that can be done too, BUT you will have to wait for my next installment!

  4. Okay author is really simple stuff, except Randy Pandy's wife, Sandy, is in a huff cause she is the one who has written all the publicity material. So here we will give her credit with her email as well. <author>sandy@randypandy.com (Sandy Pandy - The Queen of Scent)</author>

  5. First & foremost the category term is not limited to one. You can place as many categories as your little heart desires. What is the category? Well here Randy wants to put, "Perfume" and Sandy wants to put "On-Line Shopping", and Randy's kids want to put "Skunk Perfume" cause they think it is cool. (You can even put a URL in there with an "href") So our category may look like this: <category>Perfume</category><category>On-Line Shopping</category><category>Skunk Perfume</category><category domain="http://www.perfumesoftheworld.com/greatsmells">Skunks</category>Don't worry! For our final use we will just use one category.

  6. Best way to explain comments is to understand that this is URL which points to a page which is actually comments about "Heaven Scent Perfume". Randy & Sandy maintain a page for each item where clients can leave their remarks (this can also be a blog as well). So here we would put: <comments>http://www.randypandy.com/perfumes/comments/skunkyheavenscent.html</comments>

  7. Enclosure is the MAGIC of RSS. Pure Magic. It is what allows you to Podcast and VideoCast and do all that incredible stuff with RSS. However, this will be discussed at length in a following article. What we want to know here is that in enclosure I can put an image, a video, a voice recording etc. So let us say I want to release "Summertime" by Janis Joplin (swooning here!) in my RSS. Here is where I would put the information on the file. <enclosure url="http://www.randypandy.com/mp3s/janis/summertime.mp3" length="5588242" type="audio/mpeg"/>The Url to the file. followed by the "weight" of the file (exactly how big it is) and this goes for jpg, mpg etc. and the type of file. (Again we will lay all this out in another article). So far so good? But Sandy (remember her?) she does not like Janis. And besides she feels that we should put the Heaven Scent Song inside the enclosure. So our enclosure will really look like this: <enclosure url="http://www.randypandy.com/mp3s/heavenscentcomm.mp3" length="4368242" type="audio/mpeg"/>

  8. A GUID means "Globally Unique Identifier". By giving your item a "barcode" you can allow the aggregator to determine if it has to be updated or not. You can tell it if the link is permanent or not called a "PermaLink" (which is familiar to Bloggers). <guid isPermaLink="true">http://www.randypandy.com/perfumes/heavenscent.html</guid>

  9. Okay I expect you to know pubdate already! <pubDate>Sat, 10 Dec 2005 23:00:00 GMT</pubDate>

  10. The source command requires a URL and is used to give credit to the source of the article. This is used mostly when publishing to a Blog from somewhere else so the URL of the source is saved. So when we publish to RandyPandy.com all this information on his perfume it would read: <source url="http://www.yaddayadda/hs.xml">Secret Source of Heaven Scent Publicity</source>

Now don't go get confused. The only serious commands here are description and enclosure. And yes we will get a bit into "description" in our next article, and round out missing information on "enclosure" as well.

Okay lets see what are rss.xml file which will make our RSS feed looks like until now. (Due to the demands of the editing software used some of the commands appear as if on two lines. This is fine. When you create your template in the end just remember that everything between the first < and the last > is one command!)

<CHANNEL>
<TITLE>Randy Pandy's Perfumery</TITLE>
<DESCRIPTION>RSS Feed for The Great Perfume Products Sold At Randy's Pandy's Perfumery</DESCRIPTION>
<copyright>"Copyright 2006 Randy Pandy's Perfumery - All Rights Reserved"</copyright>
<link>http://www.randypandy.com</link>
<language>en-us</language>
<managingEditor>randypandy@randypandy.com (Randy Pandy)</managingEditor>
<webMaster>webmaster@randypandy.com (Pandy Randy)</webMaster>
<category>Ecommerce</category>
<pubdate>Mon, 5 Dec 2005 23:00:00 GMT</pubdate>
<lastBuildDate>Sun, 4 Dec 2005 23:00:00 GMT</lastBuildDate>
<IMAGE>
title>Randy Pandy's Perfumery</TITLE>
<WIDTH>142</WIDTH><HEIGHT>99</HEIGHT>
<LINK>http://www.randpandy.com</LINK>
<URL>http://www.randpandy.com/images/randylogo.jpg</URL>
</IMAGE>
<Item>
<title>Heaven Scent Perfume At 50% Discount</title>
<link>http://www.randypandy.com/perfumes/heavenscent.html</link>
<description>Heaven Scent Perfume the Smell your lover will die for. Created especially by Skunk Perfumes it is their newest and best selling perfume on the market today. Purchase a beautifully shaped skunk bottle with this incredible perfume and get a whopping 50% off! And if you purchase over $100 we will throw in Free overnight delivery as well!</description>
<author>sandy@randypandy.com (Sandy Pandy - The Queen of Scent)</author>
<category>Perfume</category>
<category>On-Line Shopping</category>
<comments>http://www.randypandy.com/comments/skunkheaven.html</comments>
<enclosure url="http://www.randypandy.com/mp3s/heavenscentcomm.mp3" length="4368242" type="audio/mpeg"/>
<guid isPermaLink="true"> http://www.randypandy.com/perfumes/heavenscent.html</guid>
<pubDate>Sat, 10 Dec 2005 23:00:00 GMT</pubDate>
<source url="http://www.yaddayadda/hs.xml">Secret Source Publicity</source>
</Item>
</Channel>
There you have the basics of Channel. Our next article will discuss the innards of "description" & "enclosure".

Copyright 2005 Ted W. Gross. All rights reserved. (You may publish this article in its entirety with the following author's information with live links only.)

 
 
 

Related Articles

 
California School Districts Awarded $150,000 to Encourage Students to Attend Health Career Institute
 
Bin Laden's Surprise?the U.S. Demise
 
Seeking after the Knowledge of God
 
Hezbollah and Arab Television Say Israel Lies About Hitting Underground HQ
 
Sex, Lies, & Videotape; Part 2
 
RSS Feed Can Make Your Business Famous
 
The FTC Purports and Misrepresents Their Law Enforcement Experience as It Attacks Business
 
Displaying an RSS Feed on Your Website Using PHP and MagpieRSS
 
Bless 'em All
 
Will RSS Replace Email?
 
 
 
 

Fighting Spiritual Depression

Are you discouraged? Feeling down and out? Wondering why you should even bother trying to live the C ... - David Ben-Ariel
 

Euthanasia - Is It Right To Aid People's Deaths?

The euthanasia enthusiasts argue that people should respect the person in question and therefore if ... - Victor Lensora
 

A New Wave: Sports Arbitrage Trading

Sports arbitrage trading is starting to spread across the internet like wildfire. If you haven't hea ... - Timothy Rohrer
 
 

RSS Feeds Can Increase Your Sales

RSS feeds are reshaping how we access information online. In the past, when you wanted to know when ... - Joe Duchesne
 

Iran Has Threatened Full Scale War Against The United States

Iran has threatened to take out the United States if the US and its allies make military strikes aga ... - Lance Winslow
 

Super Bowl Harbinger of Problem Drinking

Super Bowl Sunday has long been associated with over consumption of alcohol and the problems of alco ... - David Westbrook
 

Bring It On!

He has publicly admitted his regret for issuing the command but the fact his enemies obey him testif ... - Ed Howes
 

China's Tire Industry - Kicking Into High Gear

When you are so busy dealing with the day-to-day activities of business, it's easy to lose sight of ... - James Burchill
 
 
Site Home >> Privacy of Info >> Terms of Use
© 2008 www.superoperator.com All Rights Reserved.