My Oracle Support Banner

Java SE 8 Update 231 Transformer Class Inserts ASCII Carriage Return ( &#13) in All Lines of XML Signed Document (Doc ID 2631977.1)

Last updated on JANUARY 05, 2023

Applies to:

Java SE JDK and JRE - Version 8 and later
Information in this document applies to any platform.


After updating to Java SE 8 Update 231, an XML signed document contains the ASCII symbol for carriage return ( &#13 ) in all lines when the DOM is serialized to a byte array using the Transformer class.

Example code:


 Updating to Java SE 8 Update 231 results in the issue.  Serialized transforms with Java SE 8 Update 221 and previous updates do not add the ASCII carriage return symbol to the XML output.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.