Hi all,
I have a large xml file (about 2Gb) and I'm trying to import it into dataset or better in SQL Server.
I read that to solve issue of memory, it's better to use XmlReader...
So I started with following code:
but after aa.loadXml command I obtained "out of memory" message.
How can I solve it?
What is correct procedure to manage this file?
I'm groping in the dark :confused:
Thank in advanced
gio
I have a large xml file (about 2Gb) and I'm trying to import it into dataset or better in SQL Server.
I read that to solve issue of memory, it's better to use XmlReader...
So I started with following code:
Code:
Dim settings As XmlReaderSettings = New XmlReaderSettings
settings.DtdProcessing = DtdProcessing.Parse
settings.ValidationType = ValidationType.Schema
Dim reader As XmlReader = XmlReader.Create(TextBox1.Text, settings)
While reader.Read
If reader.NodeType = XmlNodeType.Element Then
Dim aa As XmlDocument = New XmlDocument
aa.LoadXml(reader.ReadOuterXml)
End If
End While
How can I solve it?
What is correct procedure to manage this file?
I'm groping in the dark :confused:
Thank in advanced
gio