开发者

Multiple channels in a single RSS xml - is it ever appropriate?

开发者 https://www.devze.com 2023-01-17 11:35 出处:网络
A typical xml file for an RSS feed starts with an \"rs开发者_如何学Gos\" element on the outermost level, and usually has a single \"channel\" element within it that represents the \"feed\" or \"channe

A typical xml file for an RSS feed starts with an "rs开发者_如何学Gos" element on the outermost level, and usually has a single "channel" element within it that represents the "feed" or "channel." Is there ever a situation where it is appropriate to use multiple channels within an element, like the following?

<rss>
    <channel>
         ...
         <item> ... </item>
    </channel>
    <channel>
         ...
    </channel>
</rss>


From here:

Subordinate to the <rss> element is a single <channel> element, which contains information about the channel (metadata) and its contents.

So there not only is no use case for that – it isn't even allowed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号