Microsoft KB Archive/263586

= FIX: DOCTYPE Subset Omitted in Cloned XML DOM =

Article ID: 263586

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft XML Parser 2.0
 * Microsoft XML Core Services 4.0
 * Microsoft XML Core Services 4.0

-



This article was previously published under Q263586



SYMPTOMS
Cloning an XML Document Object Model (DOM) document that contains a DOCTYPE definition with an internal subset on a computer with version 2.0 of the MSXML parser, returns a DOM document without the internal subset of the DOCTYPE definition.



RESOLUTION
The MSXML parser, version 2.5 (5.0.2920.0), corrects this problem.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This problem has been fixed in version 2.5 of the MSXML parser. To download the latest version of the parser, visit http://msdn.microsoft.com/xml/default.asp.



Steps to Reproduce Behavior
To reproduce this behavior, insert the following code into a new text document, and save the document as repro.htm: Microsoft Knowledge Base Article Q Problem Repro <!DOCTYPE a [ <!ELEMENT a  (#PCDATA)> <!ATTLIST a          id ID #REQUIRED> ]>       

 var xdoc1 = xmlisland.XMLDocument; var xdoc2 = xdoc1.cloneNode(true); xdoc1area.innerText = xdoc1.xml; xdoc2area.innerText = xdoc2.xml;

Microsoft Knowledge Base Article Q Problem Repro Original Document: 

Cloned Document: 

Browse to the page using a Microsoft Internet Explorer Web browser on a computer with version 2.0 of the MSXML parser. The DOCTYPE definition in the second text area does not include the subset contained in the square brackets ([]) in the original DOCTYPE definition.

Keywords: kbbug kbfix kbmsxml250fix kbmsxml400fix KB263586

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.