I am getting an xml string and I would like it do show it as part of a page in the default formatting that IE does, but I don't want to have to save it to a file. Is this possible?
:afrog:
Printable View
I am getting an xml string and I would like it do show it as part of a page in the default formatting that IE does, but I don't want to have to save it to a file. Is this possible?
:afrog:
I believe that the way XML is rendered is because of the extension/return type of the .XML file. For example, take an xml file, change its extension and open in IE.
Therefore... you'd have to either save your xml string to an XML file, or create some sort of a web service/page that returns a stream of xml type so that the IFRAME knows how to render it (although I haven't tried this myself)
Try getting the iframe's document and do a open('text/xml') on it, then write() the XML string there.
No idea if it works, this is just theory. I know document.write does not work in Geckos.
Thanks CB. The xml string is written to the document, but the content type doesn't appear to change to text/xml. Either that, or its just not rendered the same when you do a document.write.Quote:
Originally Posted by CornedBee