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