You might want to use the System.ServiceModel.Syndication namespace. Inside you will find a class called SyndicationFeed with a static Load method that can do whatever you need.
I already posted this for another question, but it might be useful for you too:
System.ServiceModel.Sydication
- about 9 times faster than Argotic
- does not support rdf
- does not support versions for atom <1
- does not support rss versions <1
- doesnβt work with XmlException on about 30% of the feeds that I give in "out of the wild" (for me this breaks the deal)
Argotic
- not updated since July 2, 2008
- slow (see above)
- has very good support for all types of channels: the whole version of atom, rss, rdf (as far as I can tell)
- slightly more difficult to use than System.ServiceModel.Sydication; you need to determine what type of feed you have before allowing Argotic to parse it, and then you need custom logic to work with each of 3 different classes depending on the type of feed. In other words, you need to wrap Argotic before it is useful.
source share