title: Forcing MSXML to format XML output with indents and newlines
body: <p>I am using MSXML 3.0 with Visual Basic 6 to store and retrieve configuration of my application. When saving the resulting <code>DOMDocument</code> to a XML file the root object gets rendered as a single very long line of text:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--WORKAPP 2011 Configuration file--&gt;
  &lt;profile version="1.0"&gt;&lt;frmPlan&gt;&lt;left&gt;300&lt;/left&gt;&lt;top&gt;300&lt;/top&gt;&lt;width&gt;24600&lt;/width&gt;&lt;height&gt;13575&lt;/height&gt;&lt;/frmPlan&gt;&lt;preferences&gt;&lt;text1/&gt;&lt;text2/&gt;&lt;text3/&gt;&lt;background_color/&gt;&lt;grid-major-step-x&gt;50&lt;/grid-major-step-x&gt;&lt;grid-major-step-y&gt;50&lt;/grid-major-step-y&gt;&lt;/preferences&gt;&lt;/profile&gt;
  </code></pre>
  
  <p>Is it possible to force MSXML to format the resulting XML file with indents and newlines?</p>