W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2001

sequence minOccurs="0"

From: S.Lakshmi Narasimhan <lakshmi@infravio.com>
Date: Wed, 4 Jul 2001 05:56:59 -0400 (EDT)
Message-ID: <3B4398C4.57F41D96@infravio.com>
To: xmlschema-dev@w3.org
<complexType name="withOptionalSequence">
    This complex type defines
    the sequence of subsequences: the first
    subsequence is optional while the
    second one is mandatory.
    Note that subelements of both subsequences
    are optional.
   <sequence minOccurs="0">
    <element ref="e1" minOccurs="0"/>
    <element ref="e2" minOccurs="0"/>
    <element ref="e3" minOccurs="0"/>
    <element ref="e4" minOccurs="0"/>

Plz read the Above code, i want to know is it necessary to specify the
<sequence minOccurs="0"> because the elements are also optinal under
this sequence.

Received on Thursday, 5 July 2001 09:30:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC