title: Open XML in new window with javascript
body: <p>I would like to be able to view xml data using any browser's native xml formatting.  Similar to opening a local xml file in a browser.</p>
  
  <ol>
  <li>The xml data is stored as a string which javascript has access to.</li>
  <li><p>I do not need anything else on the web page other than the xml data.</p>
  
  <p><code>var xmlString = document.getElementById("xmlDivContent" + name).innerText;</code>
  <code>window.open("data:text/xml;charset=utf-8," + xmlString, "", "_blank");</code></p></li>
  </ol>
  
  <p>I've searched around, extensively, for a solution to this problem...I'm not interested in using XSLT or any "home-rolled" formatting function because I just want to take advantage of the browser's built-in xml formatting.</p>