![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: xsd assistance xsd assistanceTo: NULL Date: 5/1/2008 7:35:00 AM Hi, I=92m looking for some help with an xsd type. I need a =93Bulk=94 type definition that can contain zero to many Deposit and/or Withdrawal elements, in any order. For example: <BulkRequest> <DepositRequest/> <DepositRequest/> <WithdrawalRequest/> <WithdrawalRequest/> <BulkRequest/> OR <BulkRequest> <WithdrawalRequest/> <WithdrawalRequest/> <DepositRequest/> <DepositRequest/> <BulkRequest/> The definition below supports the zero to many but not the =93any order=94 requirement due to the <sequence>. It can=92t be a <choice> because it can contain both Deposit and Withdrawals and <all> doesn=92t allow =93unbounded=94. <xs:complexType name=3D"TypeBulkRequest"> <xs:sequence> <xs:element name=3D"DepositRequest" type=3D"TypeDepositRequest" minOccurs=3D"0" maxOccurs=3D"unbounded"/> <xs:element name=3D"WithdrawalRequest" type=3D"TypeWithdrawalRequest" minOccurs=3D"0" maxOccurs=3D"unbounded"/> </xs:sequence> </xs:complexType> How can I specify this relationship? Thanks, Jeff | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
