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!
Print | posted @ Wednesday, November 26, 2008 2:22 AM