User Jorn Horstmann has already answered your question correctly, but formatting may make the answer a bit unclear. I hope these examples help those who were puzzled.
What means minOccursand maxOccursthe element<xs:all>
Remember that <xs:all>and <xs:element>have a default value of "1" for minOccursand maxOccurs. therefore
<xs:all>
<xs:element type="xs:int" name="int-attr"/>
<xs:element type="xs:string" name="str-attr"/>
</xs:all>
This is actually the same as
<xs:all minOccurs="1" maxOccurs="1">
<xs:element type="xs:int" name="int-attr" minOccurs="1" maxOccurs="1"/>
<xs:element type="xs:string" name="str-attr" minOccurs="1" maxOccurs="1"/>
</xs:all>
, <xs:all> , , , - . , XML-
<parent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.example.com/xml/schemas">
<int-attr>12</int-attr>
</parent>
. minOccurs="0" <xs:all> , , <parent/>. , , : " ". , , w3schools . " CAN ", " ".
maxOccurs <xs:all> "1" .
, , , . <xs:all> minOccurs="0" .
<xs:all minOccurs="1" maxOccurs="1">
<xs:element type="xs:int" name="int-attr" minOccurs="0" maxOccurs="1"/>
<xs:element type="xs:string" name="str-attr" minOccurs="0" maxOccurs="1"/>
</xs:all>
XML
<parent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.example.com/xml/schemas">
<int-attr>12</int-attr>
</parent>
( minOccurs="0"), <parent/>. "" , <xs:all>, spec : " , minOccurs maxOccurs 0 1", , , , , , <xs:all> .