I've been trying to pass some xml contents to a new browser window using the following technique:
var newWindow = window.open('', '_blank');
newWindow.document.clear();
newWindow.document.open();
newWindow.document.write(xmlString);
newWindow.document.close();
However, the xml gets placed inside <body></body> tags in the new window.
How can I make my xml doc represent the FULL contents of the window (no <html></html> tag)?