ecoolcubes.com ecoolcubes.com
   Index Page :: About Us :: Security & Privacy :: Terms & Conditions :: Add Url :: Add Your Article
Search:   
Add Url
 

News & Media

Fashion & Relationships

Eating & Drinking

Medical Care

Jobs & Employment

Travel & Accommodation

Home Family & Garden

Adventure & Sports

Politics & Government

Academics & Learning

Research & Science

Society & Communities

Children

Computers & Networking

Entertainment

Malls & Shopping

Banking & Finance

Automobiles

Business & Commerce

Health & Hygiene

Property & Agents

Self Enhancement

Online & Board Games

Art & Culture

 

Index Page › News & Media › RSS Newsfeeds
 

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

Author Bio:

Ted Gross

Ted Gross was born and raised in New York City and in 1978, moved to Israel, and currently resides in Jerusalem.

He began his writing career in University as the op-ed editor of the University paper and wrote a series of eight editorials during that year. While in Israel, he wrote two children's books. "The Letter & The Crown"; was published in Israel, while the second, and more successful, was published in the United States by United Synagogue entitled, "Of Rabbit's Wool & Camel's Hair". While teaching comparative religion, he also had articles on polemics and religion published in Midstream Magazine.

However, by the time the children's books were published his family was growing, and he began work and was active in high tech from 1985 until 2001. There he functioned as a CTO ? Chief Technological Officer ? in three different companies, managing to take two companies from start-up phase to a buyout and a successful IPO respectively.

After having taken the last company to a successful IPO, six children and a peaceful divorce, it was time to leave high-tech and try and develop some ideas in writing. At that point, Israel embarked on "Operation Defensive Shield", and since Ted is a reserve battlefield medic, he ended up in Jenin, and the battles that took place there became front-page news all over the world. "Three Weeks In Jenin" was written soon after, though unfortunately the contract was cancelled once the United States entered into its current war with Iraq. However, an independent movie producer, did do a documentary on Ted's experiences as a medic in Jenin.

He currently is working on the "Chronicles of the Children of Heaven" (a fantasy work), on another non-fiction book entitled "Last Times" and on a cooking book entitled "Help! I Have A Fire In My Kitchen", (as well as short stories and poetry from time to time). To make ends meet, Ted owns a real-estate investment firm in Jerusalem and Virgin Earth Article Submissions.

Examples of Ted's work can be found on his web site.

Usually one can find Ted either putting out fires in his kitchen, drinking coffee in a cafe musing about the great "what-ifs" of life, assistant coaching little league baseball, dealing with one of his six children, having a fight with his sister, or walking the byways of Jerusalem with Rainbow, his golden retriever, pondering the silence of the heavens.

You can also reach this article by using: rss feeds, rss news feeds, free rss news feeds, rss feeds news, news rss feeds, google news rss feeds
 
 
 

Related Articles

 
The Romantic Spirit of the Harlem Renaissance: Claude McKay
 
Equality
 
The Quest for Self-Determination: Reminiscences of Two Minority Women, Part Two
 
Cynical of the Government Response to Illegal Aliens?
 
Hurricanes and South Florida in 2006
 
Bestselling Author Barbara Winter Coming Up!
 
Track and Tracing - Beyond The Power of Individual Players
 
Boston's Big Dig Digs Deeper into Devastating Disrepair
 
Why Every Site Needs RSS
 
A Promise to Ernie Pyle
 
 
 
 

Bio Fuel and Bio Diesel Distribution from Commercial to Consumer Markets

We all know we must kick the habit and our addiction to foreign oil. But how can we quickly ramp up ... - Lance Winslow
 

5 Easy Ways To Use RSS On Your Site

You hear so much talk about RSS these days on the Internet and in the media. Everyone is acknowledgi ... - Titus Hoskins
 

Farming Human Clones

Can today?s American Farmer survive if they harvest clones? - Lance Winslow
 
 

The Power of Prayer

Discusses the different types, and the benefits of prayer. - Debra Lohrere
 

The Distributive Justice of the Market

"(1) Each person is to have an equal right to the most extensive total system of equal basic liberti ... - Sam Vaknin, Ph.D.
 

Your Marketing Arsenal Must Include RSS

One of the most effective and misunderstood avenues of successful internet marketing would involve a ... - Floyd Tapia
 

Mexican Living: Daily Schedule of an Expatriate

I was wondering if you might be interested in what I do with my time as an expatriate and if I have ... - Douglas Bower
 

2006 Tropical Hurricane Season is About to Start

Well most weather experts predicted this, an early start to the 2006 Atlantic Tropical Hurricane Sea ... - Lance Winslow
 
 
   Index Page :: Security & Privacy :: Terms & Conditions
© 2006 www.ecoolcubes.com - All Rights Reserved