Since this is reported by the parser, not the serializer,
this is not something saxon can fix.
You need to clean the data to remove invalid XML characters
We are using Saxon 18.104.22.168 version.
While transforming we get the following error..
SXXP0003: Error reported by XML parser: An invalid XML character (Unicode: 0x1) was found in the element content of the document.
One way to solve this issue is to clean the data before sending it to transformation, however that’s not possible for some reason.
We tried to use the saxon-character-representation property in the xsl output tag.
<xsl:output method="xml" encoding="UTF-8" indent="yes" saxon-character-representation="hex" />
However, this doesn’t solve the problem.
Any help would be appreciated.
The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.