The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
    targetNamespace="http://parent.schema.org/v1"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://parent.schema.org/v1"
    >

    <xs:simpleType name="simpleEnum">
        <xs:restriction base="xs:string">
            <xs:enumeration value="SUCCESS"/>
            <xs:enumeration value="FAILURE"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:complexType name="complexThing">
        <xs:sequence>
            <xs:element name="firstThing"   type="xs:string"      minOccurs="1"/>
            <xs:element name="secondThing" type="tns:simpleEnum" minOccurs="1"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="moreComplexThing">
        <xs:sequence>
            <xs:element name="firstThing"   type="xs:string" minOccurs="1"/>
            <xs:choice>
                <xs:element name="choice1"  type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="choice2"  type="xs:string" minOccurs="0" maxOccurs="1"/>
                <xs:element name="choice3"  type="xs:string" minOccurs="0" maxOccurs="1"/>
            </xs:choice>
            <xs:element name="lastThing"    type="xs:string" minOccurs="1"/>
        </xs:sequence>
    </xs:complexType>

</xs:schema>