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

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 UTC