tags:

views:

28

answers:

1

A typical xml file for an RSS feed starts with an "rss" 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>
+2  A: 

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.

Joey
That brings about the confusion then - why even have a channel tag in the standard? Why not just add the RSS metadata and contents within the "rss" block? Or am I missing something, conceptually?
noneme
Well, that's because the RSS spec isn't the cleanest out there :) I would recommend using Atom!
Julien Genestoux
Why have an explicit `<body>` tag in HTML instead of defining everything that isn't in the `<head>` to be in the `<body>`? Several formats have such things :)
Joey