title: An unhandled exception of type 'System.OutOfMemoryException' occurred in System.Xml.dll
body: <p>I have the following code:</p>
  
  <pre><code>XmlTextReader DBLPReader = new XmlTextReader("dblp.xml");
  
  // Load the source of the XML file into an XmlDocument
  XmlDocument DBLPDoc = new XmlDocument();
  
  // Load the source XML file into the first document
  DBLPDoc.Load(DBLPReader);
  
  // Close the reader
  DBLPReader.Close();`
  </code></pre>
  
  <p>where <code>dblp</code> has around 800 MB.</p>
  
  <p>I got an error that says "An unhandled exception of type 'System.OutOfMemoryException' occurred in System.Xml.dll"</p>
  
  <p>What is the solution in this case?</p>