title: Reading XML file and indenting
body: <p>I've been having problems with the indentation of my XML files. Everytime I load them from a certain server, the XML nodes all jumble up on a few lines. I want to write a quick application to indent the nodes properly. That is:</p>
  
  <pre><code>&lt;name&gt;Bob&lt;name&gt;
  &lt;age&gt;24&lt;/age&gt;
  &lt;address&gt;
    &lt;stnum&gt;2&lt;/stnum&gt;
    &lt;street&gt;herp derp st&lt;/street&gt;
  &lt;/address&gt;
  </code></pre>
  
  <p>currently it's coming out as :</p>
  
  <pre><code>&lt;name&gt;bob&lt;/name&gt;&lt;age&gt;24&lt;/age&gt;
  &lt;address&gt;
        &lt;stnum&gt;2&lt;/stnum&gt;&lt;street&gt;herp derp st&lt;/street&gt;
  &lt;/address&gt;
  </code></pre>
  
  <p>since I can't touch the internal program that gives me these xml files and re-indenting them without a program would take ages, I wanted to write up a quick program to do this for me. When I use the XMLdocument library stuff, it only reads the information of the nodes. So my question is, whats a good way to read the file, line by line and then reindenting it for me. All xml nodes are the same.</p>
  
  <p>Thanks.</p>