title: In javascript, how do I replace the full contents of a window with XML?
body: <p>I've been trying to pass some xml contents to a new browser window using the following technique:</p>
  
  <pre><code>    var newWindow = window.open('', '_blank');
      newWindow.document.clear();
      newWindow.document.open();
      newWindow.document.write(xmlString);
      newWindow.document.close();
  </code></pre>
  
  <p>However, the xml gets placed inside <code>&lt;body&gt;&lt;/body&gt;</code> tags in the new window.</p>
  
  <p>How can I make my xml doc represent the FULL contents of the window (no <code>&lt;html&gt;&lt;/html&gt;</code> tag)?</p>