SYMPTOMS
When parsing XML that contains "special characters" using the Microsoft XML parser (MSXML), the parser may report the following error message at the line and position of the first special character:
An Invalid character was found in text content.
Back to the top
CAUSE
The XML document is not marked with the proper character encoding scheme.
Back to the top
RESOLUTION
Specify the proper encoding scheme in the XML processing instruction.
- or -
Re-encode the XML data as proper UTF-8.
for sample:
<?xml version="1.0" encoding="iso-8859-1" ?>
<rootelement> ...XML data...
</rootelement>
When parsing XML that contains "special characters" using the Microsoft XML parser (MSXML), the parser may report the following error message at the line and position of the first special character:
An Invalid character was found in text content.
Back to the top
CAUSE
The XML document is not marked with the proper character encoding scheme.
Back to the top
RESOLUTION
Specify the proper encoding scheme in the XML processing instruction.
- or -
Re-encode the XML data as proper UTF-8.
for sample:
<?xml version="1.0" encoding="iso-8859-1" ?>
<rootelement> ...XML data...
</rootelement>
Comments