I discovered in the standard JAXB unmarshaller that it would drop the tag and
value if the date was presented in the inbound xml text as:
<ns3:LAST_MODIFICATION_DATE>
2008-11-13T20:46:36
</ns3:LAST_MODIFICATION_DATE>
The LAST_MODIFICATION_DATE JAXB generated method would return a null when
the input xml string contained the above representation of the date.
However, if the date was presented as one string:
<ns3:LAST_MODIFICATION_DATE>2008-11-13T20:46:36</ns3:LAST_MODIFICATION_DATE>
the JAXB unmarshaller would process it correctly. The resultant JAXB
object's LAST_MODIFICATION_DATE generated method would return the date
correctly.
How can I avoid this situation?
This came about because the marshalled XML was run through an XML pretty
print before sending it on to the receiving process. There was not one
warning when the string was unmarshalled, and it concerns me that other data
may be dropped due to presentation.
--
View this message in context: http://www.nabble.com/Unmarshalled-Date-Dropped-from-JAXB-Object-tp20544417p20544417.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.