V
veerleverbr
Hi,
I have an XML file with dates in it, formatted as:
<birthday>
<day>21>/day>
<month>06</month>
<year>1975</year>
</birthday>
I have an xsd that describes this as:
<xs:complexType name="dateDef">
<xs:sequence>
<xs:element name="day" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
<xs:element name="month" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
<xs:element name="year" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
When running SourceGenerator, Castor creates a class DateDef.java.
What do I have to change to make Castor understand that this is
actually a date, and that he has to turn it into the type
java.util.Date and that he has to validate wether this a valid date?
Any help would be appreciated...
Veerle
I have an XML file with dates in it, formatted as:
<birthday>
<day>21>/day>
<month>06</month>
<year>1975</year>
</birthday>
I have an xsd that describes this as:
<xs:complexType name="dateDef">
<xs:sequence>
<xs:element name="day" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
<xs:element name="month" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
<xs:element name="year" type="xs:integer" minOccurs="1"
maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
When running SourceGenerator, Castor creates a class DateDef.java.
What do I have to change to make Castor understand that this is
actually a date, and that he has to turn it into the type
java.util.Date and that he has to validate wether this a valid date?
Any help would be appreciated...
Veerle