Hi,
I have xml file, which can be goes upto 2GB.
i want to convert that xml file to dataset. i am using below code
DataSet ds = new DataSet();
ds.ReadXml(@"c:\TempFiles\feed.xml");
that gives me error
"exception of type 'system.outofmemoryexception' was thrown".
Please suggest me.
Thanks
Kamal
Govinda Rajulu YemineniPosted Jul 17, 2015, 3:13 AM
Rajeev PunhaniPosted Jul 17, 2015, 1:24 AM
XmlTextReaderand process the XML file line by lineRaja TPosted Jul 17, 2015, 12:18 AM
kamal chhabraPosted Jul 16, 2015, 2:12 PM
Raja TPosted Jul 16, 2015, 1:40 PM
I am not aware of any memory size limits to data tables - you might hit the process size ceiling if you are running as a 32bit process however (the 3GB of addressable memory).
The approach (caching the data into an in memory structure like a DataTable) is valid and makes sense.
Please check out below URL
https://social.msdn.microsoft.com/Forums/en-US/41e1b19a-b5ee-4cf2-ac1e-ff0c9a35b961/out-of-memory-exception-adonet-dataset?forum=adodotnetdataset