Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to send the schema and the XML
Message
De
14/01/2006 16:52:27
 
 
À
14/01/2006 16:32:28
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
01086836
Message ID:
01086858
Vues:
16
>Yep, there's a better way:
>
>MemoryStream ms = new MemoryStream();
>MyDataSet.WriteXml(ms, XmlWriteMode.WriteSchema);
>
>ms.Seek(0, SeekOrigin.Begin);
>StreamReader sr = new StreamReader(ms);
>string xml = sr.ReadToEnd();
>
This is perfect. Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform