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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

msxml3.dll prob

Status
Not open for further replies.

lalzad

IS-IT--Management
Nov 29, 2006
15
CA
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 the following 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>
 
[1]>why do we have a Msxml2, what is the 2 for
msxml2 is just some project name ms can call and stick to it however they like. That was decided to remain invariant for successive version 3.0, 4.0 ... That's their decision and you just have to acknowlege it. It does not have any impact on the use of the service.

[2]>when I type the following code in notepad I get an error message(the catch part of the code is displayed)
First you may try version independent progid.
[tt] var objXMLDOM = new ActiveXObject ( "Msxml2.DOMDocument" ) ;[/tt]
to see if it works.

[2.1] If it does, you have some other version installed on the machine, most probably some even later version. You can discover what you have installed through the registry. If you are not confident to manipulate, even inspect, the registry, you can use a tool from ms free downloadable:
For some other general concern, you can also take a look of a previous thread
If there are no version 3 but you have v6.0, it suffices to thereafter call upon the service using version dependent progid such as "Msxml2.DOMDocument.6.0" etc.

[2.2] If it does not, and that you said you have msxml3.dll sitting somewhere, you may register it using regsvr32:
[tt] regsvr32 msxml3.dll[/tt]
and do the test again.
 
I am sorry guys my fault, I was trying all that in FireFox, thats why I was getting the error message.
I got it right in IE.
Thanx a lot tsuji, you always give valuable information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top