The code snippets I've walked through above
demonstrate how you can easily write LINQ to XML code to retrieve a list of RSS
feeds from a local XML file, and how to remotely query an RSS feed to retrieve
an individual feed's details and individual item post contents.
I could obviously then take the resulting feed contents and data-bind
it to a ASP.NET GridView or ListView control to provide a nice view of the blog
feed:
Figure 16
I've built a simple sample application that puts all of
these snippets together to deliver a simple RSS Reader with LINQ to XML and the
new <asp:ListView> control. You can download it here. Included in the download is both a VB and C#
version of the application.