What spaces are lossing? The element text or the attribute value? The
DOMHelper uses the default XML transformer to convert a node into a string.
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Wednesday, February 03, 2010 5:35 AM
To: <[email protected]>
Subject: Re: JAXB databinding converting from/to xml and trailing spaces
On Wed, Feb 3, 2010 at 1:01 PM, Simon Laws <[email protected]>
wrote:
Is this peculiar to a particular type of field and/or a particular
wire format? I've been looking at an issue recently to do with how XML
elements with a whiteSpace facet of "collapse" should have
trailing(leading) whitespace removed but it's not happening with wstx.
Simon
Actually after debugging through I think its not the databinding but
the DOMHelper saveAsString method where it losing the spaces. Perhaps
there are some Transformer properties that could be set to control it.
...ant