Copy the content of a RSS feed into a Dataset.
/// <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;
}
1 Kommentare zum Snippet