<complexType>
Because XML Schemas have a <simpleType>, it follows that they also have a <complexType>. A complex type is used for developing element content, which is either element content or which has mixed content of both elements and data.
The representation of <complexType> is similar to the other components we have seen. It has a number of attributes that contribute to the ability to customize the <complexType> element:
id— A unique id for the complex type.
mixed— A Boolean accepting “true” or “false” with a default value of false. A value of true is used to represent a complexType that has mixed content—that is, both data and child elements.
name— A name for the complex type, which can be referenced by element declarations, extensions, restrictions, ...