Channel
After listing down all your items it is time to create a channel. A channel is found at the top if the file and is used to describe how the items listed below it are related to each other. The channel also uses a title, description, and link tag. For our example our channel information will be:
<title>Mobile Phone Enthusiasts</title>
<description>We report the latest and hottest in mobile phone trends.</description>
<link>http://mobilephoneenthusiast.com</link>
So now our RSS file will look like this.
<channel>
<title>Mobile Phone Enthusiasts</title>
<description>We report the latest and hottest in mobile phone trends.</description>
<link>http://mobilephoneenthusiast.com</link>
<item>
<title>Free Phones from Nokia</title>
<description>Nokia is giving away free phones as part of its new promo. Included is one year’s worth of unlimited calls.</description>
<link>http://mobilephoneenthusiast.com/nokiapromo.html</link>
</item>
<item>
<title>Apple iPhone Unveiled</title>
<description> Steve Jobs has finally unveiled the new Apple iPhone. The phone is a mobile phone, ipod, and PDA in one.</description>
<link>http://mobilephoneenthusiast.com/iphone.html</link>
</item>
</channel>
|