Definition Type: ComplexType
Name: attribute
Namespace: http://www.w3.org/2001/XMLSchema
Type: xs:annotated
Containing Schema: XMLSchema.xsd
Abstract
Collapse XSD Schema Diagram:
Drilldown into simpleType in schema xmlschema_xsd Drilldown into annotation in schema xmlschema_xsd Drilldown into openAttrs in schema xmlschema_xsd Drilldown into id in schema xmlschema_xsd Drilldown into annotated in schema xmlschema_xsd Drilldown into form in schema xmlschema_xsd Drilldown into fixed in schema xmlschema_xsd Drilldown into default in schema xmlschema_xsd Drilldown into use in schema xmlschema_xsd Drilldown into type in schema xmlschema_xsd Drilldown into ref in schema xmlschema_xsd Drilldown into name in schema xmlschema_xsd Drilldown into defRef in schema xmlschema_xsdXSD Diagram of attribute in schema xmlschema_xsd (W3C XML Schema Definition Language)
Collapse XSD Schema Code:
<xs:complexType name="attribute">
    <xs:complexContent>
        <xs:extension base="xs:annotated">
            <xs:sequence>
                <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType" />
            </xs:sequence>
            <xs:attributeGroup ref="xs:defRef" />
            <xs:attribute name="type" type="xs:QName" />
            <xs:attribute name="use" use="optional" default="optional">
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="prohibited" />
                        <xs:enumeration value="optional" />
                        <xs:enumeration value="required" />
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="default" type="xs:string" />
            <xs:attribute name="fixed" type="xs:string" />
            <xs:attribute name="form" type="xs:formChoice" />
        </xs:extension>
    </xs:complexContent>
</xs:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
annotation xs:annotation 0 (1)
simpleType xs:simpleType 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
id xs:id (Optional)
name xs:name (Optional)
ref xs:ref (Optional)
type xs:type (Optional)
use xs:use optional Optional
default xs:default (Optional)
fixed xs:fixed (Optional)
form xs:form (Optional)
<anyAttribute>
<anyAttribute> Allowed namespace: '##other'
Collapse Derivation Tree:
Collapse References:
xs:attributexs:topLevelAttribute,