Xml.load access denied

Hi guys,

there’s this error that has been driving me nuts. I’m helping someone to setup his XML feed and for the life of me, I cant figure this one out.

go to:

Code to work with XML:

<script language=“javascript”>
// Load XML
var xml = new ActiveXObject(“Microsoft.XMLDOM”)
xml.async = false

// Load the XSL
var xsl = new ActiveXObject(“Microsoft.XMLDOM”)
xsl.async = false

// Transform
Upon loading it in Interneet Explorer, I get a JS error on line 190 saying ‘ACCESS DENIED’. Line 190 is the red text above.

Any ideas? i’ve googled this problem, but havent found anything concrete other than it might be an internet explorer security setting doing that.

I can view the page witohout any trouble at home, but when i try from other PCs from univ, it just doesnt work.

I need some help…big time. HELP!!!


Actually i too have encountered a very similar problem. I had to use a round about way to cater the “Access Denied”.

In Xmldom activex there are two functions to load xml

  1. Load method to load a xml from a file, the string passed as a parameter is a filename along with path

  2. LoadXML method to load a xml data directly by storing in string

The first method gives the “Access denied” problem so i tried to use the second method which did work

The javascript code is as follows, as you are already using an activex control i think you can use one more in teh same code FSO - File System Object

<script language="javascript>

var fsoXML = new ActiveXObject(“Scripting.FileSystemObject”);
var XMLFile = fsoXML.OpenTextFile((“C:/Documents and Settings/test.xml”,1);
var Data = XMLFile.ReadAll();

var xml = new ActiveXObject(“Microsoft.XMLDOM”);
xml.async = false;

// upon the load statement; javascript will prompt error and jsp dies off


Please check the code, it will surely work