kamal chhabra

kamal chhabra

  • NA
  • 4
  • 4.1k

Read data from xml to dataset and shows error out of memory

Jul 16 2015 12:51 PM
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 

Answers (5)