Can the Schema element be located after the final folder is closed and
before the document is closed? For example:
<kml>
<Document>
<LookAt>...</LookAt>
<Style id="track_n">
...
</Style>
<Folder>..</Folder>
<Schema>.../Schema>
</Document>
</kml>
This order does validate.
I believe I understand how the Document type definition would allow
elements from the AbstractContainerGroup (Folder, Document), which may
be substituted for the AbstractFeatureGroup, to be after the Schema
element as you have shown.
But from validation it appears Folder elements may also be before the
Schema element. It appears this must be due to the extension base,
but my understanding of how this order is allowed is lacking. Can you
explain this?
> <complexType name="DocumentType" final="#all">
> <complexContent>
> <extension base="kml:AbstractContainerType">
> <sequence>
> <element ref="kml:Schema" minOccurs="0" maxOccurs="unbounded"/>
> <element ref="kml:AbstractFeatureGroup" minOccurs="0" maxOccurs="unbounded"/>
> <element ref="kml:DocumentSimpleExtensionGroup" minOccurs="0" maxOccurs="unbounded"/>
> <element ref="kml:DocumentObjectExtensionGroup" minOccurs="0" maxOccurs="unbounded"/>
> </sequence>
> </extension>
> </complexContent>
> </complexType>
Thanks
On Oct 17, 4:52 pm, Jason M wrote:
> Rewrote the example and posted in a bug report.
http://code.google.com/p/kml-samples/issues/detail?id=364