Order of elements in a complex-type (XSD)

Hi,
I want to make the order of elements to be immaterial in complex-type
definition. But at the same time, I want to make the maximum occurance of
one or two elements to be unbound. Is it possible to do that?
When i have "xs:all", then i have make all the child element's maxOccurs =
1. But i want to make some elements to have "unbound" for maxoccurs. If i
use "xs:choice", then all the child elements have maxOccurs="unbound".

//the code below is giving me an error
<xs:element name="Test_Root">
		<xs:complexType>
			<xs:all>
				<xs:element name="E3" type="xs:string"/>
				<xs:element name="E4" type="xs:string"
minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="t:Test1_Root"/>
			</xs:all>
		</xs:complexType>
</xs:element>

Dinesh Sankaralingam
dinesh@cook-hurlbert.com
(512) 338-1711 ext 106

Received on Wednesday, 5 March 2003 10:57:40 UTC