The <type> tag is used to delineate valid values for <field> elements. It is also used to specify a field's description.
| Attributes |
| |||||||||
| Children | <comment>?, <script>?, <enum>*? = 0 or 1 occurence, * = 0 or more occurences |
Types are used to specify enumerations.
Simply specify a list of items for each possible valid value. This method also enables the IDM to validate values and flag fields that are invalid.
<xddl>
<type id="BandClass">
<enum>
<item key="0" value="800 MHz cellular band is not supported"/>
<item key="1" value="800 MHz cellular band is supported"/>
</enum>
</type>
<structure>
<field name="Supported" length="8" type="#BandClass"/>
<field name="Unsupported" length="8" type="#BandClass"/>
</structure>
</xddl>
enum.xddl
# idm enum.xddl 0001
Name Length Value Hex Description
Supported 8 0 00 800 MHz cellular band is not supported
Unsupported 8 1 01 800 MHz cellular band is supported
See the <range> element reference for how to specify a range of values.