Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 305019 - Last Review: November 21, 2001 - Revision: 1.0
INFO: MSXML 4.0 Specific GUIDs and ProgIDs
This article was previously published under Q305019
SUMMARY
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.
MORE INFORMATION
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.
Collapse this tableExpand this table
| 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")REFERENCES
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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=303207/EN-US/
)
INFO: Installation of MSXML Parser Affects Run Mode
APPLIES TO
- Microsoft XML Core Services 4.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please