Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6240735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:37:29+00:00 2026-05-24T11:37:29+00:00

I load XML from aspx page by MSXML2.DOMDOCUMENT.3.0 ActiveXObject. var xmlDoc = null; try

  • 0

I load XML from aspx page by MSXML2.DOMDOCUMENT.3.0 ActiveXObject.

        var xmlDoc = null;
        try {
            xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0");
            xmlDoc.setProperty("SelectionLanguage", "XPath");
        }
        catch (e) {
            window.alert("CreateXMLDocument failed due to the following problem:  " + e.description);
        }

        if (xmlDoc != null) {
            xmlDoc.async = false;**
            var result = xmlDoc.load("xmlData.aspx");
            if (result == false) {
                window.alert("failed to load xml due to the following problem:  " + xmlDoc.parseError.Reason);
            }
            else {
                window.alert(xmlDoc.selectSingleNode("//RESULT").text);
            }
        }

aspx page that provides xml data:

    <%@ Page Language = "JScript" EnableSessionState="ReadOnly" %>
    <% Response.Buffer = true %>

    <%
    Response.ContentType = "text/xml";
    Response.Write("<?xml version='1.0'?>");
    Response.Write("<RESULT>1</RESULT>");
    %>
  • If these two pages are running under http, I can get popup saying “1” in IE9;
  • If these two pages are running under https, I only can get the error popup, which means xml is not loaded successfully.
  • But if I change xmlDoc.async = true and use ondataavailable callback function to get data, it will popup “1”.

Any idea about this?

UPDATE: I figured out that XMLDOM could not load xml synchronously from https in IE9, and then used XMLHTTP to load xml with no problems. But now the problem is XMLHTTP-loaded xslt could not be used to transform xml.

UPDATE AGAIN: It’s not correct to say that XML DOM could not load xml synchronously from https in IE9. In IE9 Internet Options –> Advanced –> Security –> “Do not save encrypted pages to disk”, if you have it checked, the issue occurs. Uncheck it, problem is solved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:37:31+00:00Added an answer on May 24, 2026 at 11:37 am

    You should read this for an explanation: http://blogs.msdn.com/b/ieinternals/archive/2011/05/07/downloads-and-flash-fail-when-do-not-save-encrypted-pages-to-disk-is-set.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I load an xml document from a file stream as below XmlDocument xmlDoc =
i try to edit the text of an XML file from my page edit.php.
I need to load a .xml file from a URL adress into an NSData
Can JavaScript load an RSS XML feed from Yahoo ? Is client-side JS allowed
My goal is to pull XML data from the API and load it to
I am trying to load multiple elements with the same name from XML into
We are receiving an XML file from our client. I want to load the
I need to modify a (xml-)file from Apache Ant. loadfile task allows to load
Im attempting to load a hex literal from an xml settings file, I can
I used DataSet to load a schema from following xml file; <node id=0> <node

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.