Re: RE: Difficult logical relationship in complex type
"Cheney, Edward A SSG RES USAR" <[email protected]>
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
Here is what I would do:
<xs:complexType>
<xs:choice>
<xs:choice>
<xs:choice maxOccurs="unbounded">
<xs:element ref="b"/>
<xs:element ref="c"/>
<xs:element ref="d"/>
</xs:choice>
<xs:element ref="a"/minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:choice maxOccurs="unbounded">
<xs:element ref="b"/>
<xs:element ref="c"/>
<xs:element ref="d"/>
</xs:choice>
</xs:choice>
</xs:complexType>
Does that satisfy the requirements? If that does not work please let me know what are the additional requirements I am sure I can find a way to make it work even if it does become a bit lengthy.
Austin
http://prettydiff.com/