W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2011

Question about checking dependencies between fields in xml document via xsd

From: Ионов Дмитрий Петрович <Ionov@ndc.ru>
Date: Wed, 11 May 2011 20:25:36 +0400
Message-ID: <AFDDEC5F6CC6A241A6A08956F1CC578506E0E019@delta.ndc.ru>
To: <xmlschema-dev@w3.org>
Hello.

 

During a few days I can't solve one problem.

There are two groups of fields in the xml file

first

<field1></field1>
<field2></field2>
<field3></field3>

second

<field4></field4>
<field5></field5>

 

All fields in the same level of document.

I need to check filled/presents or not at least one of these groups.

 

How to do it in xsd?

 

 

Thanks.

 

With best regards

Dmitry Ionov
Received on Wednesday, 11 May 2011 18:35:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 11 May 2011 18:35:03 GMT