This simple article demonstrates how to take RSS feeds from the internet and bring the data into your application.
1. Create a console application:
2. To access the RSS Syndication goodness within .NET you’ll need to add a reference to the System.ServiceModel assembly:
3. Paste the following code into your Program.cs file:
This code stores the RSS feeds in a dictionary, iterating through to output the feed items to the console window.
You can download this source code:
http://stevenhollidge.com/blog-source-code/RssFootballFeeds.zip
No comments:
Post a Comment