Open on-the-fly generated xml document in new window

wxdqz

New Member
Hello, everybody.

Is there any way to open a new window, and load on it an xml document generated on the fly, so that it becomes rendered with the default tree view for xml?.

I've looked hard for a solution, but I can' find one. The problem seems to be the mimeType of a dynamically created document (I find no way to make it 'text/xml'). I thought it would be something like the following:

newWindow = window.open("");
newDocument = newWindow.document.open("text/xml");
newDocument.write(xmlText);
newDocument.close();

But it seems that mimeType 'text/xml' is not yet supported.

Any help?
Thanks in advance.
 
Back
Top