Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML string to Dataset
Message
De
01/07/2003 14:40:08
 
 
À
01/07/2003 14:28:39
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00805771
Message ID:
00805777
Vues:
24
Jerry,

Assuming that the XML also contains the schema, all you need to do is:
  StringReader sr = new StringReader(MyXML);
  MyDataSet.ReadXML(sr, XMLReadMode.InferSchema);
  // You also might want to:
  MyDataSet.AcceptChanges();
~~Bonnie


>How can I take a string of XML data and place it into a DataSet?
>
>The end result I am looking for is to place the data into a WinForm DataGrid.
>
>Thanks,
>
>Jerry
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform