W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

Atleast one element should be present in ComplexType.

From: Avula, Raj <ravula@firstam.com>
Date: Tue, 1 Apr 2003 11:23:47 -0800
Message-ID: <E21C200833A45947B5410D9F10B187921B67BE@powaymail3.credit.credco.net>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

	I have a complexType with two element children and I need to make
sure that atleast one of that should be present.
Here is the sample.

	<xs:element name="REQUEST">
				<xs:element ref="OPTION" minOccurs="0"
				<xs:element ref="DATA" minOccurs="0"/>

In the above example, I need to make sure that atleast on among OPTION, DATA
should be present.

Received on Tuesday, 1 April 2003 14:57:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:10 UTC