- changed status to open
Newlines in XML Attributes are removed when unmarshalling with JAXB
Issue #41
resolved
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 '\n'
with
. 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?
Comments (2)
-
reporter -
reporter - changed status to resolved
fixed
#41newlines in xml attributes→ <<cset de77c939a218>>
- Log in to comment