C# - RSS Feed to Dataset

By , 5/11/2007
(1 ratings)
Copy the content of a RSS feed into a Dataset.
Translate to VB
/// <summary>
/// Rss to dataset.
/// </summary>
/// <param name="rssUrl">The RSS URL.</param>
/// <returns></returns>
private static DataSet RssToDataset(Uri rssUrl)
{
    DataSet dataSet = new DataSet();
    HttpWebRequest RSSfeed = HttpWebRequest.Create(rssUrl) as HttpWebRequest;
    dataSet.ReadXml(RSSfeed.GetResponse().GetResponseStream());
    return dataSet;
}
Tagged with Rss, Dataset, HttpWebRequest.

Comments

 

Log in, to comment!