Hi I have two complex type defined as follows:

<xs:complexType name="type__recurring_payment">
  <xs:choice>
   <xs:element name="continuousCCAuthority"
type="gentypes:type_continuous_cc_authority"/>
   <xs:element name="directDebit" type="common:bankAccountType"/>
   <xs:element name="cheques" type="xs:string" fixed="cheques"/>
  </xs:choice>
 </xs:complexType>

and

 <xs:complexType name="type__mandate">
  <xs:sequence>
   <xs:element name="paymentMethod" type="gentypes:type__recurring_payment">
    <xs:annotation>
     <xs:documentation>continuousCCAuthority or
directDebit</xs:documentation>
    </xs:annotation>
   </xs:element>
 </xs:complexType>

Similarly in another shema I have defined an object (customer) which can
have multiple accounts. Each account has it's own madate object, and hence
account1 may have a mandate with payment method direct debit, and account 2,
of cheque.

However, the Castor classes created from these schemas, will not allow such
a message, since my xml document cannot have two instances of different
payment types. Has anyone had a simlar problem, and know of an explanation?
Is the choice element supported with Castor?

I am using castor-0.9.3.21-xml.

Thanks.

--
Suf

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to