Is this valid schema??

hi list:


xmlspy allows me to make (it validates) the following schema snipet, but i
am suspecious about it. Is it allowed to have more than one "PART" element
that vary only on a value of an attribute in the element RESULT. 

can someone enlighten me.

regards,
ayalew

	<xsd:complexType name="RESPONSE">
		<xsd:choice>
			<xsd:element name="RESULT">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="PART">
							<xsd:complexType>
	
<xsd:attribute name="NAME" type="xsd:string" use="fixed" value="HEADER"/>
							</xsd:complexType>
						</xsd:element>
						<xsd:element name="PART">
							<xsd:complexType>
	
<xsd:attribute name="NAME" type="xsd:string" use="fixed" value="CONTENT"/>
							</xsd:complexType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="EXTRA"/>
		</xsd:choice>
		<xsd:attribute name="NAME"/>
	</xsd:complexType>

Received on Tuesday, 20 March 2001 08:52:09 UTC