Hi,
I mapped a field in my Java class to an XPath like "ns1:CountryCode/text()".
I find that when the XML looks like this:
<CountryCode listID='' listAgencyID='' listAgencyName='' listName='' listVersionID='' name='' languageID='' listURI='
http://www.foo.com' listSchemeURI='
http://www.foo.com'>
USA
</CountryCode>
The value that gets unmarshalled is " USA". All those spaces that were used for formatting are preserved. Is there a way to configure EclipseLink to trim the spaces on either end of the string and just give me "USA"?
Thanks!
--Polly