W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2012

Order indicators in the .xsd file

From: Fred Li <fredzli@gmail.com>
Date: Tue, 16 Oct 2012 15:13:51 -0700
Message-ID: <CAO7aY9Wm-vs+NWzGpekpN-qBOHzMYuacSs6ZxXpXMtLu40m+5Q@mail.gmail.com>
To: xmlschema-dev@w3.org
Hi XML experts,

I have a problem about the use of order indicators in the creation of
XML schema (.xsd file). As I learned from W3School
(http://www.w3schools.com/schema/schema_complex_indicators.asp),  we
have 3 order indicators in the XML Schema language:

All - the child elements can appear in any order, and each child
element must occur only once
Choice - either one child element or another can occur
Sequence - the child elements must appear in a specific order

I have an element (for example <asset>) that has 23 child elements,
three of them can have more than 1 instances, and 7 of them are
required (includes the 3 have more than 1 instances). According to the
definition of the order indicators, "sequence" is the only indicator I
can use in the XML schema, but I hope there is no order restriction
for the appearance of  23 child elements. Do you have any ideas to
solve this problem?

Thank you,

Fred Li
Received on Wednesday, 17 October 2012 13:54:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:02 UTC