gafoor78
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.xs lt"?>
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.X MLDOM"); //*****Error is coming on this line i think****//
doc.load("ReportSetting.xm l");
var oNode = doc.documentElement.select SingleNode ("CustomRP T");
var strView = oNode.getAttribute("View") ; //1:Collapsed,2:Folded
var strFeature = oNode.getAttribute("Featur e");//1:Th rough 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
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
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.X
doc.load("ReportSetting.xm
var oNode = doc.documentElement.select
var strView = oNode.getAttribute("View")
var strFeature = oNode.getAttribute("Featur
//////////////////////////
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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