Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML string to a dataset
Message
From
08/08/2006 22:51:17
 
 
To
08/08/2006 21:44:49
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
01143966
Message ID:
01143972
Views:
12
This message has been marked as the solution to the initial question of the thread.
Hi, Jerry,

You can do the following (read the XML string into a dataset)...
// suppose you have an XML string called "cXMLResults"
DataSet MyDs = new DataSet();
MyDs.ReadXml(new StringReader(cXMLResults), XmlReadMode.InferSchema);

myGridView.DataSource = MyDs.Tables[0];   // or whichever table you want to show
Make sure that you have a "using System.IO" namespace in your code.

Hope that helps...
Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform