Legal Information
PC Knowledge Base - The Item Element

Good Knowledge Is Good2Use

First, the following are the possible inclusions in the "Item" tag. \be careful as 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. 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.

Title

Here is the title of this item within the Channel. Remember this is the "Chapter Heading". 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>
Link

Next comes the 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>
Description

All we want here is to define the perfume. Lets do that for the time being.with

<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>
We have a description, but what if we want to put a picture in that description? What if we want the user to see in his aggregator not just words but an image as well? See here for details.

Author

Author is really simple stuff,

<author>sandy@randypandy.com (Sandy Pandy - The Queen of Scent)</author>
Category

The category term is not limited to one. You can place as many categories as you like. . If you want to put both "Perfume", "On-Line Shopping", "Skunk Perfume" and put a URL in there with an "href", category may look like this:

<category>On-Line Shopping</category>
<category>Skunk Perfume</category>
<category domain="http://www.perfumesoftheworld.com/greatsmells">Skunks</category>
Comments

The comments tag is a URL that points to a page which is actually comments about "Heaven Scent Perfume".

<comments>http://www.randypandy.com/perfumes/comments/skunkyheavenscent.html</comments>
Enclosure

Enclosure is the MAGIC of RSS. It is what allows you to Podcast and VideoCast with RSS. 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 in my RSS. Here is where the information on the file.would be put

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

For more on the Enclosure statement, click here

GUID

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

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>

The only serious commands here are description and enclosure. 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.

Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE