7.4 Exploring The Example File In The StartUpXML Folder
Let’s have a look at the XML structure of the “example.xml” document below.
<?xml version=”1.0” encoding=”UTF-8” ?>
<metadataset>
<!-- firrst class-type = Selection -->
<control>
<!-- this de nition will be used as variable (%quality) in the export xml -->
<name>quality</name>
<!-- this label is displayed in the Just In Multi GUI -->
<label>Quality</label>
<!-- this pull-down menu will be shown in the Just In Multi GUI -->
<type class=”Selection” default=”2”>
<item>Low</item>
<item>Medium</item>
<item>High</item>
</type>
</control>
<!-- second class-type = Text -->
<control> <name>customText</name>
<label>Custom Text</label>
<type class=”Text” default=”Insert your text here”>
</type>
</control>
<!-- third class-type = Checkbox -->
<control>
<name>special</name>
<label>Special</label>
<type class=”Checkbox” default=”0”>
</type>
</control>
</metadataset>
The <metadataset> tag is the root tag of the set of definable data. Every information element that can be displayed in the GUI is found within a <control> tag, where one can define the values within the <name>, <label>, <type> and the respective <item> tags.
There are three <class> attributes available: “Selection“, “Text” and “Checkbox”.
In this example we added a new <control> tag (blue text) to the “example.xml”, where we defined a new section of <name>, <label> and <type> tags. We chose to add a Checkbox type to the code. Every addition to this “example.xml” file will be reflected in the Just In Multi GUI upon reload of the file via the Metadata Set pull-down menu.