Newlines in XML Attributes are removed when the REST client unmarshalls the server response. See http://stackoverflow.com/questions/17215651/jaxb-unmarshal-deletes-newline
Tried to use
<xsd:whitespace value="preserve" /> but that didn't worked.
The only solution I found for this (and to keep the XML Schema) is to setup a
CharacterEscapeHandler in the
Marshaller and replace all
. Therefore I had to add a dependency to
jaxb-impl provided by Maven (the Oracle JRE ships with a different version of the JAXB Implementation, but I can't use these files because they are internal and shouldn't be used!)
Are there any other suggestions?