Building an RSS podcast feed, Part 1
So, you want to set up an RSS feed for a podcast? Ah, young grasshopper, there is much data to munge and so little code to munge it with … at least code that you can live with.
I recently had the need to create an RSS feed for a podcast and discovered that, while you can do a lot of the heavy lifting yourself, it is much easier to use a tool for the purpose.
Before we start let me just make it clear what an RSS feed is: It is a file-based list of descriptions of, and meta data about, content items (HTML blog content or audio or video files) that is intended to be updated at some regular interval. There are a number of RSS formats and versions but the most common by far is RSS 2.0.
If you are just starting out in the podcast biz you could resort to creating a really simple starter RSS 2.0 feed using a service like Podcast RSS Feed Generator. As they say on the cooking shows, "here's one I made earlier":
<?xml version="1.0"?> <rss version="2.0"> <channel> <title>Test</title> <link>http://test.com/</link> <description>Testing feed generator</description> <language>en-us</language> <copyright>(c) Test.com, 2009.</copyright> <lastBuildDate>Tue, 2 Jun 2009 01:47:34 GMT</lastBuildDate> <generator>tdscripts.com Podcast Generator</generator> <webMaster>admin@test.com</webMaster> <ttl>1</ttl> <item> <title>Enclosure 1</title> <description>A test enclosure</description> <pubDate>Tue, 2 Jun 2009 01:47:34 GMT</pubDate> <enclosure url="http://test.com/content/test1.mp3" length="147,657" type="audio/mpeg"/> </item> </channel> </rss>
This generator (rating, 2 out of 5) only produces the text of a very simple feed and skips a lot of the hardcore features and options available in RSS 2.0.
Despite its limitations the Podcast RSS Feed Generator provides a pretty good demo of the basics. You'll notice first of all that RSS Version 2.0 is XML 1.0 compliant and if you want your feed to work correctly you'll have to make sure you write correct XML.
Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world
On Twitter now
rss
Powered by Twitter
Esther Schindler
If the comments are ugly, the code is ugly
claird
SVG a graphics format for 21st century
pasmith
Take Chrome OS for a test spin
Sandra Henry-Stocker
Solaris Tip: Have Your Files Changed Since Installation?
jfruh
Android fragments vs. the iPhone monolith
mikelgan
What Gizmodo missed about the Pro WX Wireless USB disk drive
Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325
Join the conversation here
Quick, practical advice for IT pros. Made fresh daily.
Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.













