Microsoft KB Archive/262590

= FIX: MSXML Does Not Generate Error When Reserved Namespaces Qualify Elements =

Article ID: 262590

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft XML Parser 2.0

-



This article was previously published under Q262590



SYMPTOMS
According to the XML specifications, the author of an XML document cannot use the prefix &quot;xml&quot; in any combination of upper or lower case letters. However, the Microsoft XML (MSXML) 2.0 parser does not generate an error when the keyword &quot;xml&quot; (in lower case) is not explicitly declared as a user-defined namespace alias and yet is specified as a namespace prefix.



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

This bug was corrected in the MSXML 2.5 parser. To obtain the latest version of the parser, see the following Microsoft Web site:

http://msdn.microsoft.com/downloads/default.asp?URL=/code/topic.asp?URL=/msdn-files/028/000/072/topic.xml



Steps to Reproduce Behavior
  In Notepad, create a new text file named Books.xml, and paste the following code:         Save Books.xml in a folder on your hard disk.</li> Open Books.xml in Microsoft Internet Explorer. Notice that the MSXML parser loads and displays the XML without generating any error to indicate the use of the reserved namespace prefix &quot;xml&quot;. The MSXML parser can detect this if the keyword &quot;xml&quot; is defined as a namespace alias in one of the parent tags.For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

262585 PRB: Do Not Use &quot;xml&quot; Keyword to Begin User-Defined Namespace Prefixes

</li> Change the case of the letters in the prefix &quot;xml&quot;. For example, change &quot;x&quot; to &quot;X&quot;. The preceding code in the MSXML parser generates the following error message:

Reference to undeclared namespace prefix: 'Xml'.

</li></ol>

Keywords: kbbug kbfix KB262590

-

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

© Microsoft Corporation. All rights reserved.