Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML string to a dataset
Message
De
08/08/2006 22:51:17
 
 
À
08/08/2006 21:44:49
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
01143966
Message ID:
01143972
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform