Definition Type: Element
Name: ComplexElement
Containing Schema: DiagramConventions.xsd
Abstract
Documentation:
Comment describing your root element
Collapse XSD Schema Diagram:
Drilldown into Element4 Drilldown into Element3 Drilldown into Element2 Drilldown into Element1 Drilldown into SimpleElementXSD Diagram of ComplexElement
Collapse XSD Schema Code:
<xs:element name="ComplexElement">
    <xs:annotation>
        <xs:documentation>Comment describing your root element</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:annotation>
                <xs:documentation>A sequence of elements (AND relationship)</xs:documentation>
            </xs:annotation>
            <xs:element name="SimpleElement" type="xs:string" />
            <xs:element name="Element1">
                <xs:annotation>
                    <xs:documentation>Required single occurance of element</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:annotation>
                    <xs:documentation>A choice of elements (XOR Relationship)</xs:documentation>
                </xs:annotation>
                <xs:element name="Element2" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>Optional element</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Element3" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation>One or more elements</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="Element4" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation>Zero or more elements</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
</xs:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
SimpleElement SimpleElement (1) (1)
Element1 Element1 (1) (1)
Element2 Element2 0 (1)
Element3 Element3 (1) unbounded
Element4 Element4 0 unbounded