I would like to be able to view xml data using any browser's native xml formatting. Similar to opening a local xml file in a browser.
- The xml data is stored as a string which javascript has access to.
I do not need anything else on the web page other than the xml data.
var xmlString = document.getElementById("xmlDivContent" + name).innerText;window.open("data:text/xml;charset=utf-8," + xmlString, "", "_blank");
I've searched around, extensively, for a solution to this problem...I'm not interested in using XSLT or any "home-rolled" formatting function because I just want to take advantage of the browser's built-in xml formatting.