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:54:55
 
 
À
14/01/2006 16:52:27
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
01086836
Message ID:
01086860
Vues:
22
No problem, Michel ... you're welcome. =)

~~Bonnie



>>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
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