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.
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
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...
For information about the general rss feed specification, see the following:
Official RSS Spec
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With