Simple Swift report application data schema

This data schema is provided for use as input to the procedure Quick Start: Write a Swift report application.

For information about data schemas and how to create them, see Create the data schema (xsd) for a Swift data source.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="sales" type="sales"></xs:element>
    <xs:complexType name="sales">
        <xs:sequence>
            <xs:element name="shopName" type="xs:string" nillable="true"></xs:element>
            <xs:element name="zipCode" type="xs:int"></xs:element>
            <xs:element name="day" type="xs:dateTime" nillable="true"></xs:element>
            <xs:element name="items" type="salesItem" nillable="true" minOccurs="0" maxOccurs="unbounded"></xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="salesItem">
        <xs:sequence>
            <xs:element name="articleName" type="xs:string" nillable="true"></xs:element>
            <xs:element name="category" type="category" nillable="true"></xs:element>
            <xs:element name="price" type="xs:double"></xs:element>
            <xs:element name="runningTotal" type="xs:double"></xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="category">
        <xs:restriction base="xs:string">
        <xs:enumeration value="Furniture"></xs:enumeration>
        <xs:enumeration value="Art"></xs:enumeration>
        <xs:enumeration value="Supplies"></xs:enumeration>
        <xs:enumeration value="Travelling"></xs:enumeration>
    </xs:restriction>
    </xs:simpleType> 
</xs:schema>