Hi Sebastien,

In Castor XML, we are doing data-binding between Java and XML.
XML Schema Recommendation defines different types of date/time to be use
by XML application.
In these types only 'dateTime' fits perfectly java.util.Date. For the other
types, we
provide our own implementation of the types (located as you found out in the
org.exolab.castor.types package).
You can use these types while generating classes from a schema file, however you
can't use it
in the mapping file.

In the following weeks, you'll be able to choose your date format in the mapping
file (a patch
from a castor user will be committed soon).

The java 'GregorianCalendar' type is not supported and I would advice you to use
a Schema type instead if it can fit your needs.

Arnaud


> -----Original Message-----
> From: Stormacq, S�bastien [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 5:40 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] XML Biinding : Date and Time
>
>
> Hello,
>
> I am new to Castor and wanna use it as a Java-XML binding facility (no JDO)
>
> Is the GregorianCalendar type supported ?  I saw some references to
> data/time types in the
> org.exolab.castor.type package and in the examples provided but this
> seems oriented toward SQL mapping.
>
> There is nothing in the doc and only some message in an old thread
> from the mailing list ...
>
> Rigth now, I am thinking of implementing our own Date (based on the
> Java GregorianCalendar of
> course, we don't want to reimplement the arithmetic ...) Is this teh
> rigth way to do ?
>
> Any help, example or doc is welcome
>
> Thanks
>
> --
> Sebastien Stormacq
> IT Architect
> Aubay Luxembourg
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to