> Jeremy Nix wrote:
> 
> I have a few objects that contain date variables that I wish to be
> marshalled out to prospective XML documents.  Is it possible to set
> the date format that the marshalling process should use?  I realize
> there are other options such as creating formatted accessors in these
> objects, but I thought it would be nice to detach xml specific
> formatting rules from the objects themselves.

Not at this time. Castor by default will marshal and unmarshal using the
XML Schema 'dateTime' format. If you need a different type of format
you'll have to handle this as you mentioned with formatted accessor, or
you can also use a custom FieldHandler (or GeneralizedFieldHandler if
you need to do this for more than one field) to keep your formatting
separate from your objects.

--Keith

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

Reply via email to