XML Schema - complex type definition

<xs:complexType name="TypeName">
 <xs:sequence>
   <xs:element ...> ... 
      <xs:attribute ...>
   </xs:element>
 </xs:sequence>
</xs:complexType>

<xs:choice> and <xs:all> can be used instead of sequence.