GDL Schema Root Element

The XSD schema that is produced by the GDL parser defines a root element (<SnapshotRoot>) as follows:

    <element name="SnapshotRoot" type="gdl:GDL_RootType"/>

    <complexType name="GDL_RootType"  >
        <sequence>
            <any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
        </sequence>
    </complexType>

The XSD schema does not allow <any> elements to coexist with defined element types so the parser's schema leaves the definition of the root element very flexible. Although the XSD schema is intentionally left very general, the <SnapshotRoot> element can hold any number of <GDL_ATTRIBUTE> or <CONSTRUCT> elements in any order. Because of the GDL language's emphasis on the most recently defined entry, the appearance of elements in the XML snapshot is typically the opposite of the entry's appearance in the GDL source file.

The <SnapshotRoot> element is the outermost element in the snapshot document and it contains all of the other elements in the snapshot. There is only one <SnapshotRoot> element in each snapshot.