Microsoft KB Archive/292038

= FIX: Duplicate Attributes in XML when DTD Has Attributes with Default Values =

Article ID: 292038

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft XML Core Services 4.0

-



This article was previously published under Q292038



SYMPTOMS
When a document type definition (DTD) has attributes with default values, the resulting XML file contains duplicate attributes.



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

This bug was corrected in Microsoft XML 3.0 Service Pack 1.

For additional information on other fixes included in Microsoft XML 3.0 Service Pack 1, click the article number below to view the article in the Microsoft Knowledge Base:

292935 INFO: List of Issues Fixed in Microsoft XML 3.0 Service Pack 1

For the latest information and downloads of MSXML, refer to the following MSDN Web site at:

http://msdn.microsoft.com/xml/default.asp



Steps to Reproduce Behavior
  Paste the following code in a new text document, and save the file as Repro.dtd: <!ELEMENT root (tag)> <!ELEMENT tag EMPTY> <!ATTLIST tag attr1 (value11|value12) &quot;value11&quot; attr2 (value21|value22) &quot;value22&quot; >                     Paste the following text in another new document, and save the file as Repro.xml in the same location as the DTD file you just created:  <!DOCTYPE root SYSTEM &quot;repro.dtd&quot; >   Using Microsoft Internet Explorer, browse to Repro.xml.

The following is the expected result:  <!DOCTYPE root (View Source for full doctype...)> -   However, the actual result is as follows: <?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?> <!DOCTYPE root (View Source for full doctype...)> -  <tag attr2=&quot;value21&quot; attr1=&quot;value11&quot; attr2=&quot;value22&quot; />

Keywords: kbbug kbfix kbmsxml300sp1fix kbmsxmlnosweep KB292038

-

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

© Microsoft Corporation. All rights reserved.