Link to home
Start Free TrialLog in
Avatar of gafoor78
gafoor78Flag for India

asked on

Error opening XML file.....Microsoft JScript runtime error Automation server can't create object

Hi experts,

i have an XML file created by an application called Appeon....but i am not able to open it in the Internet Explorer(V 6). i am getting this error message :

" Microsoft JScript runtime error Automation server can't create object line = 6, col = 2 (line is offset from the start of th... "

My XML file is refering the XSLT file by this line,

<?xml-stylesheet type="text/xsl" href="C:\Program Files\Appeon\Developer\res\Report.xslt"?>

and i think the error is coming from the XSLT file, and its script part is given

///////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
      <xsl:script><![CDATA[
            var num = 0;            
            var strResPath;
            var arrRet = [];
            var doc = new ActiveXObject("Microsoft.XMLDOM"); //*****Error is coming on this line i think****//
            doc.load("ReportSetting.xml");
            var oNode = doc.documentElement.selectSingleNode("CustomRPT");            
            var strView = oNode.getAttribute("View");         //1:Collapsed,2:Folded
            var strFeature = oNode.getAttribute("Feature");//1:Through the category that the feature belongs to

//////////////////////////////////////////////////////////

Please check //*****   ***// line in the script. i think error is coming on that point.

i don't have any experience on XML, this is the first time i am using XML.

so please let me know what i have to do to open the XML file in the IE???

regards
Gafoor

ASKER CERTIFIED SOLUTION
Avatar of rdcpro
rdcpro
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kidu11
kidu11

Hi  Mike,

Thanks for ur response..

the XML file is created by an application and it contains lot of informations. i am not learning XML. i just want to see the content of the XML in the explorer. but because of the above error i can't do that.

and finally i found the solution...

To fix the error, Internet Options > advance > Security in Internet Explorer, and make sure the option "Allow active content to run in files on My Computer" is enabled

any way i am grading you for ur response

thanks,
gafoor