element dependencies

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 UTC