Introduction Language
 
The native format to import and export both object and configuration data in GAMGI is XML. The actual rules, including valid parameter names, ranges of values and hierarchies, forms the so called GAMGI Markup Language, GML.

GML supports elements (the GAMGI objects), written as <element></element>, organised in hierarchical order, so elements can contain other elements, and attributes (their properties), written as atribute="value". Empty elements, that contain no other elements, can be written as <element/>.

Attributes can appear only once for each element, but elements can appear as many times as needed, except the root element, that contains all the other elements and has no attributes. Usually the root element takes the name of the language, so in GAMGI it is called <gml>.

Good:


<gml>
</gml> this is a perfectly fine GML file, though not very usefull

<gml/> this is the simplest file that GAMGI accepts

Bad:


<gamgi>
</gamgi> the root element must be called gml

<gml>
  <gml/> the root element must appear only once
</gml>
Home