users@jaxb.java.net

JAXB and calendar datas

From: Jérôme Vuibert <jerome.vuibert_at_fleximage.fr>
Date: Thu, 26 Feb 2004 18:04:38 +0100

Hi!

Following the description of an XML schema, a date should be described as he
following example :

2004-01-01T13:20:00.000-05:00

I use JAXB to read, and write XML files. But i have notice that for this
date, the output is :

2004-01-01T13:20:00-05:00

Milliseconds have been erased.

The marshelling method uses the following command :

com.sun.msv.datatype.xsd.DateTimeType.theInstance.serializeJavaObject(((java
.util.Calendar) THE_DATE, null));

where THE_DATE is the calendar form of the date.

Does someone know how to keep the bijectivity of the read-write with JAXB
librairies ?

Thanks for your help.

Jerome