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

xsd:any and xsd:element with max(min)occurs

From: Miloslav Nic <nicmila@idoox.com>
Date: Wed, 11 Oct 2000 11:14:27 +0200
Message-ID: <39E42F73.BA709D69@idoox.com>
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
In my understanding, if I use:

<xsd:element name="XXX">
<xsd:complexType>
<xsd:any>
	<xsd:element name="aaa" maxOccurs="2"/>
        <xsd:element name="bbb" maxOccurs="2"/>
</xsd:any>
</xsd:complexType>
</xsd:element>

Then this xml file vould be schema valid: 

<XXX>
   <aaa/>
   <bbb/>
   <aaa/>
   <bbb/>
</XXX>


Am I correct?


-- 
******************************************
<firstName> Miloslav </firstName>    
<surname>   Nic      </surname>     

<mail>    nicmila@idoox.com    </mail>   
<support> http://www.zvon.org  </support>
<zvonMailingList> 
    http://www.zvon.org/index.php?nav_id=4 
</zvonMailingList>
Received on Wednesday, 11 October 2000 05:14:29 GMT

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