Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataset to XML String
Message
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00668309
Message ID:
00668314
Vues:
19
You need to create a StringWriter then use the ToString method avaiable on all .NET objects. Here is the code:

Dim cReturnString as String
Dim cXML As New StringWriter()
MyDataSet.WriteXml(cXML)
cReturnString = cXML.ToString()


>How dow I populate a STRING with the XML data from a DataSet? I do not want the output to go to a file, but be returned as a pure string for a middle tier that can then be consumed by FoxPro using XMLTOCURSOR().
>
>Thanks,
>Troy
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform