PRB: XML DOMDocuments Created in Separate Processes Cannot Be Combined (251246)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5
- 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 Q251246 SYMPTOMS
If you create an XML document in one process, pass that XMLDOMDocument to another process (say, for example, an Microsoft Transaction Server component), and try to create a new XML DOMDocument using a node or element from the first XML document, you will receive this error message:
Run Time Error -2147024809 (80070057) The parameter is incorrect.
RESOLUTION
Instead of creating the XML DOMDocuments in separate processes, you can create both XML DOMDocuments in one process, and then pass them as parameters into your Microsoft Transaction Server component.
For example, if you are using Microsoft Visual Basic, instead of having:
Public Function GetNode(xmlDoc as MSXML.DOMDocument) as MSXML.DOMDocument
you could have:
Public Sub GetNode(xmlDoc as MSXML.DOMDocument, xmlReturn as MSXML.DOMDocument) STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/13/2001 |
---|
Keywords: | kbDSupport kbprb KB251246 kbAudDeveloper |
---|
|