Monday, July 17, 2006

Basics of Blogging Series: Part 22 - RSS - A Full RSS Feed Template For Podcasting & VideoCasting

This is a "full level" RSS template. Here we add the enclosure command for PodCasting. My previous article had the basic bare-bones template and the full template with the CDATA construct. Now we will have a template for Podcasting or Videocasting.


You can easily copy and paste this into a template. If you are not a techie and dealing with XML for the first time, use a decent text only editor, unless you can use FrontPage or DreamWeaver or a dedicated XML editor. Be careful of any extra charcters that you may sneak in with your typing, and remember not to touch the opening or closing brackets. If you do not know what you are doing do NOT touch the first three lines. The line beginning with the "channel" element is where you should begin to substitute the information on your feed.


Below we have two items in this channel. You can of course add as many items as your heart desires. Just keep on adding the entire section of beginning and ending with <item></item> and filling in the information.

Just to remind you. The enclosure command consists of three parts:



  1. url - The URL of the actual enclosure.

  2. length - The size in bytes and not an estimate but a total exact size

  3. type - A standard MIME type, e.g. Audio, Video, Text etc. A list and explanation of standard MIME types can be found here - http://www.fileformat.info/info/mimetype/standard.htm


By the way. We are keeping RandyPandy's Perfumery, but since his wife Sandy loves Janis Joplin the enclosure command will contain Summertime from Janis. Hope you don't mind!



First a template with information and then a template without.
(The editing software forces an empty line between each command however in your Feed you should not have any empty lines. Just delete the lines with no information if you copy & paste)


First a template with information and then a template without.


<?xml version="1.0"  encoding="utf-8"?>
<?xml-stylesheet type='text/css' ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">



<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>
<lastBuildDate>
Sun, 4 Dec 2006 23:00:00 GMT</lastBuildDate>
<pubdate>
Mon, 5 Dec 2006 23:00:00 GMT</pubdate>
<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>
[CDATA[<img border="0" src="http://www.randypandy.com/janis/ballchain.JPG" width="138" height="180"/></a><p> Summertime, And the livin' is easy Fish are jumpin' And the cotton is high Your daddy's rich And your mamma's good lookin' So hush little baby Don't you cry One of these mornings You're going to rise up singing Then you'll spread your wings And you'll take to the sky But till that morning There's a'nothing can harm you With daddy and mamma standing by Summertime, And the livin' is easy Fish are jumpin' And the cotton is high Your daddy's rich And your mamma's good lookin' So hush little baby Don't you cry <br clear=all>]]</description>
<author>
George Gershwin sung by Janis Joplin</author>
<category>
Blues</category>
<category>
Jazz</category>
<category>
Greatest Singers</category>
<comments>
http://www.janisjoplin.com/comments/summertime.html</comments>
<enclosure url=
"http://www.janisjoplin.com/mp3s/summertime.mp3" length="4368242" type="audio/mpeg"/>
<guid isPermaLink="true">
http://www.randypandy.com/janis/janisjoplin.html</guid>
<source url="
http://www.gershwin.com/summertime.xml">Author of Summertime</source>
<pubDate>
Sat, 10 Dec 2006 23:00:00 GMT</pubDate>



</item>



</channel>



</rss>




Now Just the Bare Bones Template.





<?xml version="1.0"  encoding="utf-8"?>
<?xml-stylesheet type='text/css' ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">



<channel>



<title></title>
<description>
  </description>
<copyright></copyright>
<link></link>
<language></language>
<managingEditor></managingEditor>
<webMaster></webMaster>
<category></category>
<lastBuildDate></lastBuildDate>

<pubdate></pubdate>
<image>



<title></title>
<width></width><height></height>
<link></link>
<url></url>



</image>
<item>



<title></title>
<link></link>
<description>
[CDATA[<img border="0" src="" <br clear=all>]]</description>
<author></author>
<category></category>
<category></category>
<category></category>
<comments></comments>
<enclosure url=
"" length="" type=""/>
<guid isPermaLink="true">
</guid>
<source url="
"></source>
<pubDate></pubDate>



</item>



</channel>



</rss>



This will work and without too much trouble if you want to create a full RSS feed including enclosures for music or video this is what you need.




Previous Articles In This Series:



  1. The Basics of Blogging and Web Site Creation - Part One: Content Is King

  2. The Basics of Blogging and Web Site Creation - Part Two: Introduction To Keywords

  3. Part Three - Keywords, Tags, Categories - Oh Vey! I Am So Mixed Up!

  4. Blogging & Website Basics - Part Four: So How The Hell Do I Get Bonafide Links To My Blog?

  5. Blogging - Part Five: Trying to Understand the Psychology Behind It All

  6. Blogging - Part Six: Viral Technology - An Introduction

  7. Blogging - Part Seven: Article Submission As A Tool To Extend Your Reach

  8. Basics Of Blogging Series - Part Eight: Using Email As An Advertising Tool

  9. Basics of Blogging Series: Part Nine - RSS Mania Addiction An Introduction To RSS and the Terminology

  10. Basics of Blogging Series: Part Ten - Outline of How to Create an RSS Feed

  11. Basics of Blogging Series: Part Eleven - Debunking a Few RSS Myths

  12. Basics of Blogging Series: Part Twelve - The RSS Feed Template File

  13. Basics of Blogging Series: Part Thirteen - The Basic Elements in the "Channel" Element

  14. Basics of Blogging Series: Part 14 - How the RSS Feed Works & Some Programming Constructs

  15. Basics of Blogging - Part 15 - Editor Tools - Qumana & Performancing Extension for Firefox

  16. Basics of Blogging - Part 15A - Qumana's Drop Pad

  17. Basics of Blogging Series: Part 16 - RSS Channel Sub-Elements Specifically "Image" (& How To Use It)

  18. Basics of Blogging Series: Part 17 - RSS - The Elements Within the "Item" Element

  19. Basics of Blogging Series: Part 18 - RSS - Podcasting, VideoCasting & The Magic of the Enclosure Sub-Element

  20. Basics of Blogging Series: Part 19 - RSS - Rounding Out The Multi-Media - The CDATA Command

  21. Basics of Blogging Series: Part 20 - RSS - A Basic Template File to Create Your Very Own RSS Feed

  22. Basics of Blogging Series: Part 21 - RSS - A Full RSS Template File to Create Your Very Own RSS Feed


Click Here For The Cumulative Index To All Posts @ Cobwebs Of The Mind


Tags: , , , , , , , , , , , , ,
Categories: technology, internet, Basics of Blogging Series, What Is RSS Series
Basics of Blogging Series: Part 22 - RSS - A Full RSS Feed Template For Podcasting & VideoCasting


Edited With Qumana


No comments: