Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XML string to Dataset
Message
De
01/07/2003 16:01:44
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:
00805810
Vues:
39
That's what I needed to know. Thanks!


>>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.
>>
>
>string filename = "foo.xml";
>oData = new DataSet();
>oData.ReadXml(foo.xml, XmlReadMode.InferSchema);
>
>
>That can will read xml out of a file, or a string
>
>
>string XML = "<xml>foo</xml>";
>DataSet ds = new DataSet();
>StringReader sr = new StringReader(XML);
>ds.ReadXml(sr, XmlReadMode.InferSchema);
>
>
>
>I hope that helps.
>
>Morgan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform