System.ServiceModel.Syndication.SyndicationFeed determine feed type (RSS vs Atom)?

Posted by Josh on Stack Overflow See other posts from Stack Overflow or by Josh
Published on 2010-06-10T02:49:42Z Indexed on 2010/06/10 2:52 UTC
Read the original article Hit count: 545

Filed under:
|
|
|

Is it possible to determine from the syndicationfeed class what type of syndicationfeed is being read? If all I have is the url (blahblah.com/feed) it might be rss or atom, and depending on the type I want to do one thing or the other.

Is there a simple way to tell without parsing the document and looking for specific characters?

© Stack Overflow or respective owner

Related posts about rss

Related posts about asp.net-3.5