PRB: Error Message When an XML Document Contains Low-Order ASCII Characters (315580)
The information in this article applies to:
- Microsoft XML 3.0
- Microsoft XML 3.0 SP1
- Microsoft XML 3.0 SP2
- Microsoft XML 4.0
- Microsoft Data Access Components 2.8
This article was previously published under Q315580 SYMPTOMS When you attempt to use versions 3.0 or later of the MSXML
parser to parse XML documents that contain certain low-order non-printable
ASCII characters (that is, characters below ASCII 32), you may receive the
following error message: An Invalid character was found
in text content. CAUSE Versions 3.0 and later of the MSXML parser strictly enforce
the valid XML character ranges that are defined by the World Wide Web
Consortium (W3C) XML language specification. XML documents that are parsed
using versions 3.0 or later of MSXML cannot contain characters that fall
outside the defined valid XML character ranges. The low-order non-printable
ASCII characters in the ranges that are listed in the "More Information"
section are not valid XML characters. An XML document that contains instances
of these characters is not conformant with the W3C specifications and cannot be
parsed successfully with versions 3.0 and later of MSXML. RESOLUTION To resolve this problem, either remove instances of the
low-order non-printable ASCII characters, or replace the characters with an
alternate valid character such as the space character (ASCII 32, hex #x20).
This solution makes the XML document compliant with the W3C specifications.
However, removing or replacing instances of these characters may affect other
applications that use the data and to which the characters are significant.
Such additional impact can only be identified by testing and will need to be
addressed by implementing a fix or workaround that is appropriate for a
specific situation. STATUSThis
behavior is by design.REFERENCESFor additional information on other known causes and
workarounds for the error message that is specified in the 'Symptoms' section,
click the article numbers below to view the articles in the Microsoft Knowledge
Base: 238833 PRB: XML Parser: Invalid Character Was Found in Text Content
275883 INFO: XML Encoding and DOM Interface Methods
Modification Type: | Minor | Last Reviewed: | 7/17/2003 |
---|
Keywords: | kbprb KB315580 |
---|
|