Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding to create file to convert XML to DataSet
Message
 
 
To
22/08/2010 14:45:53
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01477799
Message ID:
01477804
Views:
54
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform