ASP.NET, MVC,C#, Windows-Phone,SharePoint, Silverlight

Primary Menu

how to consume an Atom RSS Feed using Asp.Net C# with LINQ

This article describes how to consume an Atom RSS Feed using Asp.Net C# with LINQ.
There are many ways to achieve this. But I am using LINQ because LINQ has lot of features to customize with minimum code.

Using Xdocument object in LINQ will help you to read an xml file from the server.
Once you have the document object you can just take advantage of linq to xml for customize,
So the above code just read all the rss reader from the given url sort by last publishing date.
If you want more customize to the above code to show only top few items from the list you can try with Take() method.