Apple 网站上的podcast howto显示了一个示例 XML 文件,它引用了一个 podcast DTD: podcast-1.0.dtd
. 遗憾的是,此地址没有 DTD。我听说您可以使用 feedvalidator.org 验证提要,但它只是一项服务。是否还有其他可以使用官方播客 DTD 的位置?
DTD 给出为xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
。此 URL 实际上并不解析为 DTD。
Apple 网站上的podcast howto显示了一个示例 XML 文件,它引用了一个 podcast DTD: podcast-1.0.dtd
. 遗憾的是,此地址没有 DTD。我听说您可以使用 feedvalidator.org 验证提要,但它只是一项服务。是否还有其他可以使用官方播客 DTD 的位置?
DTD 给出为xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
。此 URL 实际上并不解析为 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
我不相信有可以访问的“官方”播客 DTD。
运行播客目录的各种私营公司/组织(例如 Apple、Google、Spotify)发布了非官方规范。但是,目前(2020 年 3 月),似乎没有任何此类已发布的播客 DTD。
以下资源可能会有所帮助...
有关通用 rss 提要规范的信息,请参阅以下内容:
有关播客特定 rss 提要规范的信息,请参阅以下内容:
还有一些在线服务,您可以在其中将 URL 发布到您的播客 rss 提要,并检查它们是否符合上述某些规范...