Subject: RE: [xsl] Displaying XML in a new IE window From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 6 Feb 2002 08:57:23 -0000 |
Hi, This isnt an xsl question, so you will need to find the relevant list. However, to give you a start- your function is fine, the problem is what you are passing to it. A possible way to get the whole xml is to use the XML DOM and then access the root.xml: function showXML() { var xml = new ActiveXObject('MSXML2.DOMDocument.4.0'); xml.async = false; xml.load('yourXMLFile.xml'); xml.setProperty("SelectionLanguage", "XPath"); displayXML(xml.xml); } Cheers andrew === -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Haque, Suraiya Sent: Tuesday, February 05, 2002 6:35 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] Displaying XML in a new IE window I'm trying to display some XML in a new IE window. I would like to display the whole XML tree, with tags and attributes , but only the elements show up as strings. My Javascript looks like this: function displayXML(xmlString) { var test=window.open('','newWindow','resizable=yes,scrollbars=yes, height=undefined,width=undefined', false); test.document.write("<body>") test.document.write(xmlString) test.document.write("</body>") } Anyone know what I should be doing differently? Thanks in advance for your help. -Suraiya XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Displaying XML in a new I, Aniceto López | Thread | RE: [xsl] Displaying XML in a new I, Sachidanandam E K |
RE: [xsl] XSTL - Help / Easy one!, Michael Kay | Date | RE: [xsl] Speed and memory problems, Michael Kay |
Month |