Best Way to read rss feed in .net Using C# [closed]

Add System.ServiceModel in references Using SyndicationFeed: string url = “http://fooblog.com/feed”; XmlReader reader = XmlReader.Create(url); SyndicationFeed feed = SyndicationFeed.Load(reader); reader.Close(); foreach (SyndicationItem item in feed.Items) { String subject = item.Title.Text; String summary = item.Summary.Text; … }

XmlTextReader vs. XDocument

If you’re happy reading everything into memory, use XDocument. It’ll make your life much easier. LINQ to XML is a lovely API. Use an XmlReader (such as XmlTextReader) if you need to handle huge XML files in a streaming fashion, basically. It’s a much more painful API, but it allows streaming (i.e. only dealing with … Read more