Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the official podcast DTD?

Tags:

xml

podcast

dtd

The podcast howto on the Apple website shows a sample XML file, which refers to a podcast DTD: podcast-1.0.dtd. The DTD is not available at this address, unfortunately. I heard you can validate a feed using feedvalidator.org, but it's only a service. Is there any other location where the official podcast DTD is available?

The DTD is given as xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd". This URL does not actually resolve to a DTD.

like image 835
automaciej Avatar asked Dec 05 '11 18:12

automaciej


2 Answers

no dtd is referenced by the xml attribute you are quoting. instead it is but a (abstract) namespace declaration - syntactically it could be any valid uri as the local name (itunes) could be any id (see here for a formal definition). semantically it represents a particular markup vocabulary. no concrete resource needs to be accessible through the uri.

a dtd reference would have to come as part of a doctype declaration at the beginning of your xml doc, see the formal spec or a gentler explanation.

note that though the examples' discussion limits itself on (x)html-related documents, any xml doc may have a dtd defined.

regards

like image 190
collapsar Avatar answered Nov 16 '22 18:11

collapsar


I don't believe there is an 'official' podcast DTD that is accessible.

There are unofficial specs put out by various private companies/organisations that run podcast directories (e.g. Apple, Google, Spotify). But, at this time (March 2020), there doesn't appear to be any such published podcast DTD.

The following resources may help...

Official Generic RSS Spec

For information about the general rss feed specification, see the following:

Official RSS Spec

Unofficial Commercial Specs

For information about podcast-specific rss feed specifications, see the following:

Apple Podcasts Connect Help

Google Feed Requirements

Spotify Podcast Delivery Specification


There are also online services where you can post a URL to your podcast rss feed and check they are valid against some of the above-mentioned specs...

I recently posted details about such validators in this answer.

like image 24
Danoz Avatar answered Nov 16 '22 17:11

Danoz