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

Re: sequence minOccurs="0"

From: Eddie Robertsson <eddie@allette.com.au>
Date: Fri, 06 Jul 2001 09:49:11 +1000
Message-ID: <3B44FCF7.7C88BF78@allette.com.au>
To: "S.Lakshmi Narasimhan" <lakshmi@infravio.com>
CC: xmlschema-dev@w3.org
Hi,

<snip/>

>    <sequence minOccurs="0">
>     <element ref="e1" minOccurs="0"/>
>     <element ref="e2" minOccurs="0"/>
>    </sequence>
>    <sequence>
>     <element ref="e3" minOccurs="0"/>
>     <element ref="e4" minOccurs="0"/>
>    </sequence>
>   </sequence>
>  </complexType>
>
> 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.

No, you don't have to specify minOccurs="0" on the <sequence> element just
becuase the child elements are optional.

Cheers,
/Eddie
Received on Thursday, 5 July 2001 19:47:53 GMT

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