Read Rss into DataSet

The simple trick shows how to read rss feed into DataSet .

using System;
using System.Data;
using System.Net;
 
namespace DevIntelligence.Examples
{
    class RssReader
    {
        [STAThread]
        static void Main(string[] args)
        {
            HttpWebRequest feed = 
            HttpWebRequest.Create("http://msdn.microsoft.com/rss.xml") 
            as HttpWebRequest;
            
            DataSet data = new DataSet();
            data.ReadXml( feed.GetResponse().GetResponseStream()) ;
        }
    }
}


 
 
 

Leave a Reply