Can anyone tell me the best way to convert a large xml file to a dataset with VB.Net?
I've tried:
Dim ds As New DataSet
ds.ReadXml("C:\MyLargeXMLFile.xml")
Also tried using the XMLTextReader:
Dim myXMLfile As String = "C:\MyLargeXMLFile.xml"
Dim fsReadxml As System.IO.FileStream = New System.IO.FileStream(myXMLfile, System.IO.FileMode.Open)
Dim reader As XmlTextReader = Nothing
Dim xmlds = New DataSet
reader = New XmlTextReader(fsReadxml)
xmlds.ReadXml(reader)
These Both seem to take a long time to convert.
I've tried:
Dim ds As New DataSet
ds.ReadXml("C:\MyLargeXMLFile.xml")
Also tried using the XMLTextReader:
Dim myXMLfile As String = "C:\MyLargeXMLFile.xml"
Dim fsReadxml As System.IO.FileStream = New System.IO.FileStream(myXMLfile, System.IO.FileMode.Open)
Dim reader As XmlTextReader = Nothing
Dim xmlds = New DataSet
reader = New XmlTextReader(fsReadxml)
xmlds.ReadXml(reader)
These Both seem to take a long time to convert.