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

Choice: attribute or child element

From: Alessandro Vernet <avernet@scdi.org>
Date: Fri, 06 Dec 2002 15:15:23 -0800
Message-ID: <3DF12F8B.4000409@scdi.org>
To: xmlschema-dev@w3.org

All,

Is there a way to write a schema to validate documents that look like: 
<a><b/></a>, or <a c="..."/> (i.e. the element "a" must have a child 
element "b" or an attribute "c", but not both)?

Alex
Received on Friday, 6 December 2002 18:17:25 GMT

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