i have following problem.
due to tests i made a xml-file directly with the generated classes of castor 0.9.5. by creating the objects by myself (without unmarshalling) and then i marshaled them in order to get again the xml-file.
this is my test xml-file:
<dl> <dt> <txt>test data</txt> </dt> <dd> <txt>test definition</txt> </dd> <dt> <txt>test data 2</txt> </dt> <dd> <txt>test definition 2</txt> </dd> </dl>
my schema is:
<xs:element name="dl"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element ref="dt"/> <xs:element ref="dd"/> </xs:sequence> </xs:complexType> </xs:element>
when i marshal it i get the exception: ValidationException: dd is a required field.;
but when i change the sequence to a choice (with the same attributes) all works fine.
i tried to unmarshal and then to marshal the xml-file and it works as well.
do i forget to set anything, when i create the xml-file as java object?
bye bruno
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev