ZVON > References > XML Schema 2001 Reference
index | >> Schema << | DTD

union

Go to standard
In: schema
Schema

<xs:element name="union" id="union">
     <xs:complexType mixed="false">
          <xs:complexContent>
               <xs:extension base="xs:annotated">
                    <xs:sequence>
                         <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0" maxOccurs="unbounded"/>
                    </xs:sequence>
                    <xs:attribute name="memberTypes" use="optional">
                         <xs:simpleType>
                              <xs:list itemType="xs:QName"/>
                         </xs:simpleType>
                    </xs:attribute>
               </xs:extension>
          </xs:complexContent>
     </xs:complexType>
</xs:element>


Occurs in Schema Tutorial examples:
Multiple restrictions
Element is either a fixed string or an integer