XSD Date versus XMLGregorianCalendar
If an XSD contains the following:
A specific date, in the format YYYY-MM-DD, at which the applicable
information is automatically declassified.
And XJC generates JAXB getter/setter using XMLGregorian Calendar for "declassDate", then the actual data written to the XML file upon marshalling will include date and time.
XSD/XML validators consider this a violation. The validators insist that only a date [and not also time] should be written.
Is there a way to enlighten XJC to generate JAXB code that only writes date [and not time]? Thanks.