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

Raja TRank #685 · 3.5K reputationPosted Jul 16, 2015, 9:40 AM EDT
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
kamal chhabraRank #8,316 · 224 reputationPosted Jul 16, 2015, 10:12 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 16, 2015, 8:18 PM EDT
Rajeev PunhaniRank #551 · 4.4K reputationPosted Jul 16, 2015, 9:24 PM EDT
XmlTextReaderand process the XML file line by lineGovinda Rajulu YemineniRank #1,518 · 1K reputationPosted Jul 16, 2015, 11:13 PM EDT