5
Answers

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

kamal chhabra

kamal chhabra

9y
4.4k
1
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)