• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

msxml3.dll prob

 
h
Greenhorn
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:
<html>
<head>
<title>Test MSXML Install</title>
<head>
<body>
<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.");
}
</script>
</body>
</html>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic