<?xml version="1.0"?>
<xsd:schema version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="allrecords">
        <xsd:complexType>
            <xsd:sequence>
               <xsd:element name="record">
                    <xsd:complexType>
                        <xsd:attribute name="f1" type="xsd:integer"/>
                        <xsd:attribute name="f2" type="xsd:string"/>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>
