PRB: Namespace Prefixes Are Declared as FIXED Attributes in an XML DTD (296492)
The information in this article applies to:
- Microsoft XML 3.0
- Microsoft XML 3.0 SP1
- Microsoft XML 4.0
This article was previously published under Q296492 SYMPTOMS
The Microsoft XML (MSXML) parser does not interpret namespace prefixes that are declared as FIXED attributes in an XML Document Type Definition (DTD). If you use a FIXED value attribute in a DTD to declare a namespace prefix, and if you use the namespace prefix to qualify element or attribute names without explicitly declaring the prefix in an XML document that references the DTD, you may receive the following error message when the MSXML parser tries to load the XML:
Reference to undeclared namespace prefix: <Namespace prefix>
This error occurs whether you program the MSXML Document Object Model (DOM) through code or open the XML document in Microsoft Internet Explorer.
CAUSE
This problem occurs because XML Language and Namespace specifications do not define how DTDs and namespaces should interact with each other.
RESOLUTION
To work around this problem, explicitly declare the namespace prefix in the XML document before you use it to qualify element and/or attribute names. For more information and sample code, see the "More Information" section.
Modification Type: | Major | Last Reviewed: | 10/12/2001 |
---|
Keywords: | kbDSupport kbprb KB296492 |
---|
|