title: How to dispose XmlDocument
body: <p>I am creating a XmlDocument using a stream and do some changes in the XmlDocument and save the XmlDocument to the stream itself.</p>
  
  <pre><code>XmlDocument xmlDocument = new XmlDocument();
  xmlDocument.Load(fileStream);
  
  ////
  ////
  
  ////  
  xmlDocument.Save(fileStream);
  //how to dispose the created XmlDocument object.
  </code></pre>
  
  <p>now how can i destroy the XmlDocument object?</p>