BUG: MSXML: NMTOKEN Values with Multiple Colon (:) Characters Are Treated as XML Names (313371)
The information in this article applies to:
- Microsoft XML 2.0
- Microsoft XML 2.5
- Microsoft XML 2.6
- Microsoft XML 3.0
- Microsoft XML 3.0 SP1
- Microsoft XML 3.0 SP2
- Microsoft XML 4.0
This article was previously published under Q313371 SYMPTOMS
When you use NMTOKEN values that contain multiple colon (:) characters in an XML document, the values may be treated as XML names when the MSXML parser validates the document, and you may receive the following validation error message:
Multiple colons are not allowed in a name.
RESOLUTION
To work around this problem, do either of the following:
- Set the validateOnParse property of the DOM object to False before you load the XML document.
- Change the type of the attribute to CDATA. Note that this permits the attribute to contain characters that are not NameChar characters.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For more information, see the following Web site:
Modification Type: | Major | Last Reviewed: | 1/3/2002 |
---|
Keywords: | kbbug KB313371 |
---|
|