Details
Description
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:
- unmarshaller.setWhitespacePreserve(true);
- 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.
Activity
M.-Leander Reimer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | bug1593-testcase.zip [ 23173 ] |
M.-Leander Reimer
made changes -
| Attachment | bug1593-patch.zip [ 23176 ] |
Werner Guttmann
made changes -
| Assignee | Werner Guttmann [ wguttmn ] |
Werner Guttmann
made changes -
| Fix Version/s | 1.0.4 [ 12888 ] |
Werner Guttmann
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Werner Guttmann
made changes -
| Attachment | patch.c1593.20060930.txt [ 23202 ] |
M.-Leander Reimer
made changes -
| Attachment | TextContentTest.java [ 23224 ] |
Werner Guttmann
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Werner Guttmann
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |