Problem with script execution



I have a script section which looks like:

<html>
<body>
<script language="VBScript">
set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.load("XMLDOM.xml")
document.write("The original is:")
document.write(xmlDoc.xml )
</script>
</body>
</html>

When I open this file in Internet Explorer 6 I get the first text
message but not the contents of the XML file. If I execute the body as
below:

set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.load("XMLDOM.xml")
WScript.Echo "The original is:"
WScript.Echo xmlDoc.xml

Then all works OK and I get the contents of the XML file.

I have installed the MSXML4 and the Internet Explorer tools.

Any ideas please?

Regards


.



Relevant Pages

  • Re: [Full-Disclosure] Cross-Site Scripting in Unparsable XML Files (GM#013-IE)
    ... First off i can't reproduce this on my fully patched ie6 ... Second you should be able to have ie render any html page as a xml file like ... > Internet Explorer automatically attempts to parse any XML file requested ...
    (Bugtraq)
  • Re: [Full-Disclosure] Cross-Site Scripting in Unparsable XML Files (GM#013-IE)
    ... First off i can't reproduce this on my fully patched ie6 ... Second you should be able to have ie render any html page as a xml file like ... > Internet Explorer automatically attempts to parse any XML file requested ...
    (Full-Disclosure)
  • Viewing transformed source
    ... I have an XML file with the stylesheet link: ... to transform XML into HTML. ... If I open the file in Internet Explorer, is there any way to view the HTML ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Help on:The XML page cannot be displayed !!
    ... Please visit the Internet Explorer newsgroup experts: ... | -When I go to help and support:"XML Page Cannot Be Displayed" Error Message When You Open An XML File ... Temporary Internet Files folder on your computer's hard disk, and Internet Explorer opens the file from this ... result, when you attempt to open an .xml file attachment from an Outlook or Outlook Express e-mail message, ...
    (microsoft.public.windowsxp.general)
  • Re: Help on:The XML page cannot be displayed !!
    ... Please visit the Internet Explorer newsgroup experts: ... | -When I go to help and support:"XML Page Cannot Be Displayed" Error Message When You Open An XML File ... Temporary Internet Files folder on your computer's hard disk, and Internet Explorer opens the file from this ... result, when you attempt to open an .xml file attachment from an Outlook or Outlook Express e-mail message, ...
    (microsoft.public.windowsxp.basics)

Loading