Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding to create file to convert XML to DataSet
Message
 
 
À
22/08/2010 14:45:53
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01477799
Message ID:
01477804
Vues:
55
This message has been marked as the solution to the initial question of the thread.
>I need to avoiding creating a file to convert a XML to DataSet. Presently, DataSet.ReadXML() requires a file to be created on disk. Has anyone found a way to do it from memory?

Read XML from a string to DataSet VB sample
Dim xmlData As String = "<XmlDS><table1><col1>Value1</col1></table1><table1><col1>Value2</col1></table1></XmlDS>"

Dim xmlSR As System.IO.StringReader = New System.IO.StringReader(xmlData)

myDS.ReadXml(xmlSR, XmlReadMode.IgnoreSchema)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform