Beginning with 11.2.0.2, a Newline Character is Added to Inserted XML Using Binary Storage (Doc ID 1932180.1)

Last updated on OCTOBER 02, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

Beginning with 11.2.0.2, a newline character is being added to an XMLTYPE column.  This can be illustrated with the following testcase:

This is causing the application to throw the following error and would require recoding:

org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer).
org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 734;
The content of elements must consist of well-formed character data or markup.
at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:191)
at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:71)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms