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

Doubt about Choice of lists

From: Luis Enrique <enrique@defferrari.com.br>
Date: Fri, 17 Dec 2010 12:18:42 -0200
Message-ID: <4D0B7142.5050201@defferrari.com.br>
To: xmlschema-dev@w3.org
  Hi people,
I have a schema with the following structure:

<element name="demonstrativosRetorno" minOccurs="0">
<complexType>
<choice>
<element name="element1" type="type1" maxOccurs="30"/>
<element name="element2" type="type2" maxOccurs="30"/>
<element name="element3" type="type3" maxOccurs="30"/>
<element name="element4" type="type4" maxOccurs="30"/>
</choice>
</complexType>
</element>

what it means?
I can have a list of elements, all of the same type?
or I can have a mixed list?
I guess the first one is the right option, Im right?

-- 

Luis Enrique PettinariAcuna

E-mail: enrique@defferrari.com.br

GrupoDefferrari

Novo Hamburgo   -   RS   -   Brasil

Telefone/Fax: 51 30350000

Home-page: www.defferrari.com.br
Received on Friday, 17 December 2010 15:41:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:18 UTC