PRB: Mixing Different Versions of MSXML DOM Objects Is Not Recommended (284856)
The information in this article applies to:
- Microsoft XML 2.0
- Microsoft XML 2.5
- Microsoft XML 2.6
- Microsoft XML 3.0
- Microsoft XML 4.0
This article was previously published under Q284856 SYMPTOMS
The Microsoft XML (MSXML) Document Object Model (DOM) objects exposed by the MSXML parser can be used to programmatically create, load, and manipulate XML documents. Avoid mixing DOM objects from different versions of the MSXML parser because it is not a recommended coding practice. If you attempt to mix different versions of the MSXML DOM objects while programming the DOM, one of the following error messages appears:
Run-time error '-2147024809(80070057)': The parameter is incorrect
Run-time error '-2147467262(80004002)': No such interface supported
CAUSE
When you mix different versions of MSXML DOM objects in a DOM object's method call, the object from the differing version of the parser that is supplied as a required method parameter is treated as a foreign object.
RESOLUTION
Reference and use objects implemented by a single version of the MSXML parser. Do not mix different versions of DOM Objects when you program the MSXML DOM.
Modification Type: | Major | Last Reviewed: | 10/12/2001 |
---|
Keywords: | kbDSupport kbprb KB284856 |
---|
|