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

Defining unique pair of elements

From: Cams Ismael <Ismael.Cams@siemens.com>
Date: Wed, 19 Mar 2003 16:57:32 +0100
Message-ID: <57FD2C3A246F76438CA6FDAD8FE9F1957ABC55@hrtades7.atea.be>
To: xmlschema-dev@w3.org

Hello everybody,

can somebody tell me how I can accomplish the following:

example.xml

<modules>
     <module>
	<masteragent>
	</masteragent>
     </module>
     <module>
	<proxyagent>
	</proxyagent>
     </module>
     <module>
	<proxyagent>
	</proxyagent>
     </module>
</modules>

The combination module - masteragent must be present just one time.
The combination module - proxagent may be available 0 or more times.

How can I define this with xsd ?

Kind regards,
IsmaŽl
Received on Wednesday, 19 March 2003 11:00:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT