Display XML in IFRAME dinamically
Posted on 2004-08-09
I'd like to display XML in IFRAME dinamically in expandable way, like it appears when you open XML file in IE. It has to look like XML preview: user edit XML in TEXTAREA element, clicks Preview button and the TEXTAREA's content should be displayed in IFRAME ( or any other element) in expandable, structured way.
xml_preview.document.body.innerHTML = xml_edit.innerHTML;
The above line only copies the content, but does not treat it as XML.
Any ideas will be appreciated,