so just hoew do you go about reading an rss feed?

G

Guest

is there ant place where i can learn the basics of reading an rss feed and
enumerating through the values?
just want to start at the bottom, no frills.
thanks
 
G

Guest

thanks
saw this one. I may need to work through the source code. It's good it
works, but i was hoping for a simple example that shows what needs to
happens to read the rss feed
thanks
 
G

Guest

How about something like this:

public DataSet GetRSSFeed(string rssUrl)
{
// LOGIC:
// get xml from remote uri into a dataset

DataSet dsRssFeed = new DataSet();
XmlReader rssReader = new XmlTextReader(rssUrl);
dsRssFeed.ReadXml(rssReader);
return dsRssFeed;
}

Pretty barebones. You should probably add exception handling and you might
want to stick the dataset into the cache so you're not reading it every time
the page is hit. You can also bind the dataset (or datatable) to a datagrid.
You can iterate through the entries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top