|
RssFeeds
Support of RSS in PubSubHubbub
The quirks of the RSS standard are well known, but it is still a very common format that many sites publish exclusively (notably, the New York Times). Our demo hub now supports subscribing to and publishing updates of RSS feeds. It works exactly the same way as the spec works with Atom, except the content is RSS (both incoming from the publisher and outgoing to the publisher). The subscription flow is the same for consumers. Publishing is the same for feed owners. To enable auto-discovery of Hubs for your RSS feeds (so clients can participate in PubSubHubbub), use the atom:link namespace element like this: <?xml version="1.0"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/>
...
</channel>
</rss>Full documentation of RSS support in the spec is being tracked in this issue. |
Sign in to add a comment
A hint: You must make SURE that you put the atom:link element FIRST after channel. If you put it further down, it may break your feed.
Why would position make a difference here? Parsers are not allowed to impose any form of importance or meaning on the order of elements (only their ancestry obviously). In fact many RSS 2.0 feeds will already have an atom:link containing a rel=self pointing to the feed URI - this is covered by the current RSS 2.0.11 spec from the RSS Advisory Board. It's more likely the parser you encountered is broken in this regard.
hus hus I will try to this programe
The syntax suggested above may be OK in RSS 2, but will not parse correctly in RSS 1. In RSS 1, I'd suggest perhaps:
<linkrel:hub xmlns:linkrel="http://www.iana.org/assignments/link-relations/" rdf:resource="http://pubsubhubbub.appspot.com" />The atom link works is any XML document - you just need to document the Atom 1.0 namespace. On many platforms, this is done in RSS 2.0 feeds, but NOT in RDF feeds. You can add the declaration to the link itself, using:
<atom:link rel="hub" href="http://example.com/hub" xmlns:atom="http://www.w3.org/2005/Atom" />
See? Works just fine in RDF/RSS 1.0...
how to create automatically added rss or atom file like blogspot.com