adorablesites.com adorablesites.com
  Index Page :> About Us :> Place Your Link :> Privacy :> Terms of Use :> Add Article
Search:   
 
 

Driver Profile - Michael Schumacher

A brief look at Schumacher's driving career. - Marvyn H
 

God Chooses the Foolish and the Weak

It was their devotion and courage and determination that changed. It was the power of the Holy Spiri ... - Patricia Nordman
 

What is Commitment?

When I married my wife I committed myself to her welfare, both physically and emotionally. She put h ... - Anthony Smith
 
 

The Tower of Babel

The intent was to build a place of worship of God. Was it to ensure their place on earth, an offerin ... - Bonnie Moss
 

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

Definitions of each possible element that is included within the Item element. How they work and wha ... - Ted Gross
 
 

Index Page –› Events & News –› RSS News Feeds
 

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

 

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: Ted Gross
 
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.

 
 
 

Related Articles

 
Communism Is On The March
 
The Gaian Paradigm Part 4 - Religion
 
Tropical Hurricane Wilma
 
Hello I Must Be Going: The Vanishing Twin
 
Call No Man Father
 
Saudi National Donates Money to Sponsor International Terrorism
 
RSS FEEDS: Whither Thou Go'est?
 
RSS Explained
 
Energy Experts to Settle Gas Price Issue on Global Trade
 
White Sun - The Heavenly Seal
 
 
 
Multiple links exchange
 
 

Health & Therapy

 

Finance & Banking

 

Music & Entertainment

 

Realty & Property

 

Self Healing

 

Hotels & Travel

 

Drink & Food

 

Jobs & Careers

 

Lifestyle & Fashion

 

Software & Networking

 

Automotive

 

Healthcare & Medicine

 

Government & Politics

 

Home & Garden

 

Research & Science

 

Business & Services

 

Outdoor & Sports

 

Culture & Art

 

Children

 

Online & Board Games

 

Events & News

 

Shopping Online

 

Society & Issues

 

Academics & Learning


 
Index Page :> Privacy :> Terms of Use  
Copyright © www.adorablesites.com - All Rights Reserved Worldwide.