RE: How Check If One Element Or A Group Exists

Something like:

<choice>
  <sequence>
    <element ref="vin"/>
    <group ref="separate" minOccurs="0"/>
  </sequence>
  <group ref="separate"/>
</choice>

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Gary Fix
> Sent: 30 September 2004 16:04
> To: xmlschema-dev@w3.org
> Subject: How Check If One Element Or A Group Exists
> 
> 
> Hi!
> How do I check for the existence of either an element such as 
> an auto Vehicle Id Number (VIN) or a separate group of 
> elements, such as auto body, make, model and year?
> I need to know if one (VIN) or the other (group) is supplied. 
> Both may be supplied optionally.
> thanks in advance...gary...
> 
> 
> 
> 

Received on Thursday, 30 September 2004 16:08:34 UTC