Created
December 1, 2014 21:36
-
-
Save mendesbarreto/6d2ac755edcd574d2f18 to your computer and use it in GitHub Desktop.
Read a Blogs RSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.ServiceModel.Syndication; | |
using System.Xml; | |
static int Main(string[] args) | |
{ | |
XmlTextReader reader = new XmlTextReader("http://your.com/feed/"); | |
SyndicationFeed feed = SyndicationFeed.Load(reader); | |
Console.WriteLine(feed.Title.Text); | |
Console.WriteLine(feed.Items.Count()); | |
Console.ReadKey(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment