APG|SGA
infosnowAPI Type 1API Type 2Divers

API Type 1 - Element groups

Element Groups contain a list of elements such as slopes or facilities.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<Import>
    <Destination>Sample Destination</Destination>
    <Date>30.08.2012 14:19</Date>

    <Resort>         <resortId>666</resortId>         <resortName>Sample Resort</resortName>
        <ReportValueName_01> ... ReportValueContent ... </ReportValueName_01>         <ReportValueName_02> ... ReportValueContent ... </ReportValueName_02>         ...         Report data
        <ElementGroup name="GroupName_01">            <Element>                ...            </Element>            <Element>                ...            </Element>            ...         </ElementGroup>
        <ElementGroup name="GroupName_02">            <Element>                ...            </Element>            ...         </ElementGroup>
         ...
    </Resort>
    <Resort>         <resortId>667</resortId>         ...     </Resort>
    ...
</Import>
Each Element Group is identified by the Attribute name:
<ElementGroup name="GroupName">
   ...
</ElementGroup>
Elements don't have any attributes. Look for Identifier (primary key) within the Element-Tag:
<Element>
   <Id>ElementId</Id>
   ...
</Element>
Watch out: primary key of Elements may vary, depending on object type. No warranty that there's a Tag named "Id" as shown above.