Parse RSS feed using asp.net c# Parse RSS feed using asp.net c# asp.net asp.net

Parse RSS feed using asp.net c#


The consumption (and generation) of feeds has been baked into the framework since .NET 3.5 SP1 in the System.ServiceModel.Syndication namespace.

You can consume a feed (ATOM or RSS) using the SyndicationFeed class, like this:

var reader = XmlReader.Create("http://localhost/feeds/serializedFeed.xml");var feed = SyndicationFeed.Load(reader);

Lots of examples on MSDN - take a look at the namespace page I've linked to. Should get you started.