title: Format XML string in VBScript
body: <p>I have a string of unformatted xml (no whitespacing) and I want to make a VBScript function that accepts the string as its parameter and formats the XML with tabs and newlines</p>
  <p>I have taken a good look around the net and came close with this <a href="http://blogs.msdn.com/b/robert_mcmurray/archive/2012/07/06/creating-quot-pretty-quot-xml-using-xsl-and-vbscript.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/robert_mcmurray/archive/2012/07/06/creating-quot-pretty-quot-xml-using-xsl-and-vbscript.aspx</a></p>
  <p>This did not work because the 'MSXML2.DomDocument' object does not support writing to a string from what I can tell.</p>
  <p>Ive tried to access various properties of the object (namely 'xml', 'text', and 'xml.text') all to no avail.</p>
  <p>Simply put I need a string of messy xml in, and a string of formatted xml out</p>