It's now possible, with the new classes added in the System.ServiceModel.Syndication namespace, to create or read an RSS feed without the use of additional components or classes.
First you'll need to reference the "System.ServiceModel.Web" assembly, then here is a short snippet to read a feed from an url:
XmlReader reader = XmlReader.Create("http://feeds.feedburner.com/erp360");
SyndicationFeed feed = SyndicationFeed.Load(reader);
foreach (var item in feed.Items)
{
Console.WriteLine(item.Title.Text);
Console.WriteLine(item.PublishDate.ToString("dd/MM/yyyy"));
Console.WriteLine();
}
reader.Close();
To read from a feed contained into a string :
XmlReader reader = XmlReader.Create(new StringReader(FeedXmlContent));
SyndicationFeed feed = SyndicationFeed.Load(reader);
reader.Close();
Wednesday 26 November 2008 | Predicate<T>
Cher Entreprenaute, vous pouvez trouver ici votre passeport pour l'économie numérique
