W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

element dependencies

From: Marco Hoendervangers <Marco.Hoendervangers@OVSoftware.com>
Date: Tue, 5 Feb 2002 05:41:38 -0500 (EST)
To: <xmlschema-dev@w3.org>
Message-ID: <21AA80DAD9DAD311AC51009027B245EC34A2BB@OVSNT5>
Hi,

Does anyone knows if it is possible to define dependencies between elements?
Consider the following xml:

<person>
	<name>bill</name>
	<married>false</married>
</person>

When the person is married another element is required: partner.

<person>
	<name>bill</name>
	<married>true</married>
	<partner>kelly</partner>
</person>

Is there a way to define this kind of behaviour in xml schema?

Thanks.
Marco
Received on Thursday, 7 February 2002 16:44:30 GMT

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