Where is the official podcast DTD?

孤街醉人 提交于 2019-11-29 17:24:29

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/8389872/where-is-the-official-podcast-dtd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!