Twitter feed appears to be both RSS 2.0 and Atom?

Posted by Greg K on Stack Overflow See other posts from Stack Overflow or by Greg K
Published on 2010-04-18T22:40:58Z Indexed on 2010/04/18 22:43 UTC
Read the original article Hit count: 246

Filed under:
|
|
|
|

I'm parsing various site feeds, and putting together a small library to help me do it.

Looking at the Atom RFC and RSS 2.0 specification, feeds from Twitter seem to be a combination. Twitter specifies an Atom namespace in an RSS 2.0 structure?

GitHub uses Atom, whereas Flickr (offers multiple but the default 'Latest' feed from user profiles) appears to be RSS 2.0.

How can Twitter specify a Atom namespace and then use RSS?

This makes parsing feeds a little ambiguous, unless I ignore any specified namespace and just examine the document structure.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about rss