xsd:complexType
Element information
Namespace: http://www.w3.org/2001/XMLSchema
Schema document: xmlschema.xsd
Other elements with the same name: xsd:complexType
Type: xsd:localComplexType
Properties: Local, Qualified
Content
- Sequence [1..1]
- xsd:annotation [0..1]
- Choice [1..1]
- xsd:simpleContent
- xsd:complexContent
- Sequence [1..1]
- Choice [0..1]
- xsd:group
- xsd:all An "all" group that allows elements to appear in any order. Unlike other group types, does not allow other groups as children, only elements.
- xsd:choice
- xsd:sequence
- Choice [0..*]
- xsd:anyAttribute [0..1]
from group xsd:typeDefParticlefrom group xsd:attrDecls - Choice [0..1]
from type xsd:annotatedfrom group xsd:complexTypeModel
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from type xsd:annotated | |
mixed | [0..1] | xsd:boolean | Indicates that mixed content is allowed. | Default value is "false". |
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax |
Used in
- Group xsd:elementModel
- Type xsd:localElement via reference to xsd:elementModel (Element xsd:element)
- Type xsd:narrowMaxMin via reference to xsd:elementModel (Element xsd:element)
- Type xsd:topLevelElement via reference to xsd:elementModel (Element xsd:element)
Sample instance
<xsd:complexType> <xsd:simpleContent> <xsd:restriction base="QName"> <xsd:simpleType>... </xsd:simpleType> <xsd:minExclusive value="any text content">... </xsd:minExclusive> <xsd:attribute>... </xsd:attribute> <xsd:anyAttribute>... </xsd:anyAttribute> </xsd:restriction> </xsd:simpleContent> </xsd:complexType>