Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automation server can't create object

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,
i tryed to load the DOM object as :
client does have MS XML 3 installed, but in side by side mode. do with this script i should be able to use version 3 features in order to transform the xml on the client side even if it's not in replace mode :

<html>
<script language=&quot;javascript&quot;>
function init()
{
// Load data.
var source = new ActiveXObject(&quot;Msxml2.DOMDocument.3.0&quot;);

source.loadXML(data.xml);

// Load style sheet.
var stylesheet = new ActiveXObject(&quot;Msxml2.DOMDocument.3.0&quot;);
stylesheet.loadXML(style.xml);

// Fill a div tag with the result of the transform
xslTarget.innerHTML = source.transformNode(stylesheet);
}
</SCRIPT>
<head>
</head>

<body onload=&quot;init()&quot;>
<xml id=&quot;data&quot;>
<?xml version=&quot;1.0&quot;?>
<t>Hello</t>
</xml>
<xml id=&quot;style&quot;>
<xsl:stylesheet version=&quot;1.0&quot;
xmlns:xsl=&quot; <xsl:eek:utput method=&quot;html&quot;/>
<xsl:template match=&quot;/&quot;>
<xsl:value-of select=&quot;/*&quot;/>
</xsl:template>
</xsl:stylesheet>
</xml>
<DIV id=&quot;xslTarget&quot;></DIV>
</body>
</html>



i tryed this on a machine where MS XML is installed with replace mode, and it of course works.
but on a machine where MS XML 3 is installed with side by side mode, this doesn't works, but it should !!
the error i do get is : automation server can't create object

don't understand why, as i do run localy this sample code.
Best regards,
Elise, XML learning girl X-)
 
i've found the problem: i was using a test machine where the dll where loaded, unloaded.... i tested it then on a machine that only installed ms xml 3 on side by side and it worked.

yes i know i shouldn't use such specific object, but i don't have the choice for the moment
thanks :) Best regards,
Elise, XML learning girl X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top