【问题标题】:Can there be more than one <itunes:author>-tag in a RSS feed?一个 RSS 提要中可以有多个 <itunes:author>-tag 吗?
【发布时间】:2012-07-04 19:15:23
【问题描述】:

我想为包含多个作者的播客创建 RSS 提要。我要写吗

<item>
    ...
    <itunes:author>Person 1, Person 2</itunes:author>
    ...
</item>

或

<item>
    ...
    <itunes:author>Person 1</itunes:author>
    <itunes:author>Person 2</itunes:author>
    ...
</item>

?

【问题讨论】:

    标签: rss itunes


    【解决方案1】:

    如果允许多个作者姓名,它们将嵌套在一般作者父级中,就像这样(或类似的东西):

    <itunes:authors>
        <itunes:author>Person 1</itunes:author>
        <itunes:author>Person 2</itunes:author>
    </itunes:authors>
    

    规范文档 (http://www.apple.com/itunes/podcasts/specs.html#author) 声明了一个 itunes:author 元素,这意味着您问题中的选项 1 是可行的方法:

    <item>
        ...
        <itunes:author>Person 1, Person 2</itunes:author>
        ...
    </item>
    

    您始终可以通过在线验证工具测试您的提要:http://feedvalidator.org/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-31
      • 2011-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多