I have xsd schema file which I can’t change.
Here is an excerpt that makes my problem:
<xs:element name="Event" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="EventDate" type="xs:string" minOccurs="0">
...
Here is an example of string data I get for EventDate:
2012-05-30T12:30:00 CEST
I’m compiling with xjc and I get Event class with String field.
Is there a way to get Event class with some kind of Date field?
I guess I should write some kind of adapter and that’s ok but I don’t know how to tell xjc to use it only on EventDate element.
I’m compiling with:
This is part of temp.xml:
And here is part of com.mydomain.adapters.DateAdapter class: