• Post Reply Bookmark Topic Watch Topic
  • New Topic

msxml3.dll prob

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I search for msxml3.dll in the files and folders, the search results show that I have msxml3.dll installed on the machine.
but when I type this code in notepad I get an error message(the catch part of the code is displayed)
1. can anybody tell me why
2. and on this line
var objXMLDOM = new ActiveXObject ( "Msxml2.DOMDocument.3.0" ) ;
why do we have a Msxml2, what is the 2 for
Here is the code:
<title>Test MSXML Install</title>
<script language="JScript" type="text/javascript">
try {
var strXML = "<?xml version='1.0' ?><AnyElement>Some text</AnyElement>"
var objXMLDOM = new ActiveXObject ( "Msxml2.DOMDocument.3.0" ) ;
objXMLDOM.loadXML(strXML) ;

//If no exception is raised MSXML 3 is installed.
document.write("MSXML 3 is installed on your machine.") ;

// If there is an exception it could be a coding error but
// it is likely that MSXML 3 is not installed.
catch (e)
document.write("MSXML 3 is NOT installed on your machine.");
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!