datetime - How to generate class with field of type Date from xs:string element with JAXB -
i have xsd schema file can't change.
here excerpt makes problem:
<xs:element name="event" maxoccurs="unbounded"> <xs:complextype> <xs:all> <xs:element name="eventdate" type="xs:string" minoccurs="0"> ... here example of string data eventdate:
2012-05-30t12:30:00 cest i'm compiling xjc , event class string field.
there way event class kind of date field?
guess should write kind of adapter , that's ok don't know how tell xjc use on eventdate element.
you can use 'xmladapter' . supports functionality.
Comments
Post a Comment