xsd-parser 1.5.2

Rust code generator for XML schema files
Documentation
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://example.com"
    targetNamespace="http://example.com"
    elementFormDefault="qualified"
    finalDefault="">

    <xs:simpleType name="ListType">
        <xs:list itemType="xs:string" />
    </xs:simpleType>

    <xs:complexType name="FooType">
        <xs:attribute name="a-list" type="tns:ListType" use="optional" default="" />
    </xs:complexType>

    <xs:element name="Foo" type="tns:FooType" />

    <xs:simpleType name="MyString">
        <xs:restriction base="xs:string">
            <xs:pattern value="\d" />
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="ListOfMyStringsType">
		<xs:restriction>
			<xs:simpleType>
				<xs:list itemType="tns:MyString" />
			</xs:simpleType>
			<xs:minLength value="1" />
		</xs:restriction>
	</xs:simpleType>

    <xs:element name="ListOfMyStrings" type="tns:ListOfMyStringsType" />
</xs:schema>