Blogger :
Geekswithblogs.net
All posts :
All posts by Geekswithblogs.net
Category :
XML
Blogged date : 2008 Nov 26
I want to show you one of the simplest way to parse xml feeds that you want to grab from the site offering this functionality. For this we need only a DataSet, that will store the parsed data in his tables. So try for example the following code and you'll see what the dataset contains after execution:
DataSet ds = new DataSet();
ds.ReadXml("http://weather.yahooapis.com/forecastrss?p=MDXX0003&u=c", XmlReadMode.Auto);
And, what do you think? That's all you have to do! Pretty simple, yah!
