When marshalling a structure that contains an AnyNode element with pure whitespaces as text content the XML structure is serialized correctly with the whitespaces, however, once I unmarshall the same structure the whitespaces of the AnyNode element are not preserved.
I tried the following settings to change this behaviour:
- Using DTD with attribute declaration xml:space="preserve"
- Setting node attribute xml:space="preserve" directly
For normal String elements these settings work as expected, but for an AnyNode element they don' have any influence.