Microsoft KB Archive/305019

From BetaArchive Wiki

Article ID: 305019

Article Last Modified on 11/21/2001


  • Microsoft XML Core Services 4.0

This article was previously published under Q305019


Microsoft XML Core Services (MSXML) 4.0 is installed in side-by-side mode. This means that installing MSXML 4.0 does not replace or depend on any previously installed version of the MSXML parser on your computer. This is done to protect the quality of applications that are currently using Msxml.dll, Msxml2.dll, or Msxml3.dll. Side-by-side mode also allows you to decide which version of the parser to use in your code.

After MSXML 4.0 is installed, applications that use version-independent ProgIDs continue to run using the same version that they were using before. To use version 4.0, applications must be written to use the appropriate version-dependent class IDs (CLSIDs) and ProgIDs that reference Msxml4.dll.


MSXML 4.0 GUIDs and ProgIDs

The following table lists the version-dependent GUIDs and ProgIDs that can be used to invoke MSXML 4.0 in your applications.

Symbolic Name GUID ProgID
CLSID_DOMDocument40 {88d969c0-f192-11d4-a65f-0040963251e5} Msxml2.DOMDocument.4.0
CLSID_DSOControl40 {88d969c4-f192-11d4-a65f-0040963251e5} Msxml2.DSOControl.4.0
CLSID_FreeThreadedDOMDocument40 {88d969c1-f192-11d4-a65f-0040963251e5} Msxml2.FreeThreadedDOMDocument.4.0
CLSID_MXHTMLWriter40 {88d969c9-f192-11d4-a65f-0040963251e5} Msxml2.MXHTMLWriter.4.0
CLSID_MXNamespaceManager40 {88d969d6-f192-11d4-a65f-0040963251e5} Msxml2.MXNamespaceManager.4.0
CLSID_MXXMLWriter40 {88d969c8-f192-11d4-a65f-0040963251e5} Msxml2.MXXMLWriter.4.0
CLSID_SAXAttributes40 {88d969ca-f192-11d4-a65f-0040963251e5} Msxml2.SAXAttributes.4.0
CLSID_SAXXMLReader40 {7c6e29bc-8b8b-4c3d-859e-af6cd158be0f} Msxml2.SAXXMLReader.4.0
CLSID_ServerXMLHTTP40 {88d969c6-f192-11d4-a65f-0040963251e5} Msxml2.ServerXMLHTTP.4.0
CLSID_XMLHTTP40 {88d969c5-f192-11d4-a65f-0040963251e5} Msxml2.XMLHTTP.4.0
CLSID_XMLSchemaCache40 {88d969c2-f192-11d4-a65f-0040963251e5} Msxml2.XMLSchemaCache.4.0
CLSID_XSLTemplate40 {88d969c3-f192-11d4-a65f-0040963251e5} Msxml2.XSLTemplate.4.0

How to use MSXML4 ProgIDs in your Applications

To use MSXML 4.0 in your applications, use version-dependent ProgIDs. Te following code samples show how to create the DOMDocument:

In a Microsoft Visual Basic application, using early binding:

Dim oxmldoc as New Msxml2.DOMDocument40

Note that you must set a reference to Microsoft XML version 4.0 for this option. To do this, click References on the Project menu.

In a Microsoft Visual Basic application, using late binding:

Dim oxmldoc as Object
Set oxmldoc = CreateObject("Msxml2.DOMDocument.4.0")

In a JScript application that is running on the client side:

var oxmldoc = new ActiveXObject("Msxml2.DOMDocument.4.0");

In a Visual Basic Scripting Edition (VBScript) application that is running on the server side:

Set oxmldoc = Server.CreateObject("Msxml2.DOMDocument.4.0")


Replace mode upgrades are no longer supported in MSXML 4.0. The Xmlinst.exe tool (a separate download) is for use with MSXML 3.0. It does not work with MSXML 4.0. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

303207 INFO: Installation of MSXML Parser Affects Run Mode

Keywords: kbinfo KB305019