dotnet-Snippets.com
Snippets: 73 | Registered User: 84 | Visitors online: 35
Main Menu

Home
Random Snippet
FAQs
Contact Us
Imprint
RSS Feeds

Rss All languages
Rss C#
Rss VB.NET
Rss C++
Rss J#
Rss ASP.NET
Jobs

dotnet Jobs
Google Ads

Sri Lanka .NET 
                Forum Member
RSS Feed to Dataset

Author: Jan Welker
Programming Language: C# Rating:
not yet rated

Views: 3011

Description:

Copy the content of a RSS feed into a Dataset.



C#
1
2
3
4
5
6
7
8
9
10
11
12
/// <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;
}

This Snippets could be interesting for you:

Poor Excellent
1 2 3 4 5 6 7 8 9 10
Sign in to vote for this snippet.

Comments:
(Please log in to write an comment.)