Laurent de Segur wrote:
> Hi,
>
> I was looking at a simple way to convert elements that ends with "Date" at
> the end oftheir name to get the java.util.Date type. Right now, I've defined
> them as xsd:string type. Is there an easy way to do so in a binding file and
> if yes, is it possible to get an example? Thanks a lot in advance.
> Regards,
You should define a simple type for those strings that you intend to
process as dates. That's a good thing not just for JAXB, because those
"string"s aren't ordinary strings, but they are dates that look like
strings.
Then you can specify <javaType> on that simple type to bind it all to
the Date type.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net