Mike Macgirvin
Diary and Other Rantings
Beyond Silicon Valley
   
Friday, May 16 2008, 01:33 pm
Dec 22, 2005
iTunes DTD sucks even more
One more reason to dump the iTunes DTD... it doesn't exist anymore! Observe the following RSS+XML feed:

<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.DTD" >

The 'xmlns' declaration is supposed to give a 'dictionary' of the document language so that an absolute stranger to the itunes namespace can figure it out. I'd have to go dig up the xml spec, but I'm pretty certain they say in pretty strong language that if you sponsor a DTD, you kinda' gotta' haveta' put it at a URL that is never going to change. Ever. This URL comes straight from Apple's own Podcast spec (which coincidentally was invented by MTV veejay Adam Curry, who will soon be the father of the internet according to wikipedia).

Yet if you go to that web address and try and read the language definition, you'll find yourself instead at apple.com/itunes staring at an Apple eShopping mall and in my case telling me that I need a new operating system to install iTunes. Where's the DTD? In fact I'm just trying to extend RSS in another way and was going to use their DTD document as a template (since it's about the only existing extension onto the RSS space). Sigh...

Categories: software rantings
Comments:

June 7, 2006 05:07
[*TOP MEMBER*] Lamby
Actually IIRC, XML namespaces aren't meant to be used as literal URLs and one isn't required to place a page at that Internet address -- they are just used as they are a hierarchical structure which provides a unique string that most people are familiar with. Many namespace locations return a 404 error.

mike (Mike Macgirvin)
June 7, 2006 17:27
mike
By golly you're right. The defintive document is at http://www.w3.org/TR/REC-xml-names

I dumped the itunes namespace regardless. It's totally unneccessary, that is unless you're actively creating podcasts for itunes (the store). You can still attach MP3's to your weblog and download 'em into an MP3 player. You just can't send 'em to Apple. I'm not crying over that loss.


Comments? | More Actions Open/Close menu
Back
It's all magic. :-)
-- Larry Wall in <7282@jpl-devvax.JPL.NASA.GOV>