<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
    <Document>
        <Schema name="MySchemaName" id="MySchemaId">
            <SimpleField type="string" name="foo"/>
        </Schema> 
        <Folder>
            <name>layer</name>
            <Placemark>
                <ExtendedData>
                    <SchemaData schemaUrl="MySchemaName">
                        <SimpleData name="foo">bar</SimpleData>
                    </SchemaData>
                </ExtendedData>
            </Placemark>
        </Folder>
        <Folder>
            <name>layer2</name>
            <Placemark>
                <ExtendedData>
                    <SchemaData schemaUrl="#MySchemaId">
                        <SimpleData name="foo">baz</SimpleData>
                    </SchemaData>
                </ExtendedData>
            </Placemark>
        </Folder>
        <Folder>
            <name>layer3</name>
            <Placemark>
                <ExtendedData>
                    <SchemaData schemaUrl="unknownName">
                        <SimpleData name="foo">zor</SimpleData>
                    </SchemaData>
                </ExtendedData>
            </Placemark>
        </Folder>
        <Folder>
            <name>layer4</name>
            <Placemark>
                <ExtendedData>
                    <SchemaData schemaUrl="#unknownId">
                        <SimpleData name="foo">glub</SimpleData>
                    </SchemaData>
                </ExtendedData>
            </Placemark>
        </Folder>
    </Document>
</kml>
