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

 

 

----------------------------------------

David A. Lee

dlee@calldei.com

http://www.xmlsh.org

 

From: Praful Tarkar [mailto:Praful.Tarkar@smartstream-stp.com]
Sent: Tuesday, July 02, 2013 10:10 AM
To: saxon-help@lists.sourceforge.net
Subject: [saxon] SXXP0003: An invalid XML character (Unicode: 0x1)

 

Hi,

 

                We are using Saxon 9.3.0.11 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" />

                As referenced from http://www.saxonica.com/html/documentation/javadoc/net/sf/saxon/s9api/Serializer.Property.html#SAXON_CHARACTER_REPRESENTATION

                However, this doesn’t solve the problem.

 

                Any help would be appreciated.

 

Regards,

Praful

 


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.