Element: ENUMVALUE

Attributes

Name Type Optional
NAME STRING No Indicates the name of the enumeration value, as it will appear in the XML input file to parse
OVERRIDE STRING Yes If specified, this attribute overrides the prefix-based mechanism that deduces the host identifier - i.e. the identifier in the host language - from the enumeration entry name.
HOSTVALUE STRING Yes Depending on the host language, XMLBooster translates its own enumerations into an enumeration or a sequence of integer constants. This attribute can be used to override the default enumeration value. This feature is language-dependent, and might not be supported on some of XMLBooster's code generators.
USEASNULL BOOLEAN Yes Setting this attribute to TRUE for an enumeration value indicates that it can be considered as null, for instance when checking whether a given optional construct must be unparsed. This feature is language-dependent, and might not be supported on some of XMLBooster's code generators.
SHORTDESC STRING Yes

Content

Sequence of
META

Appears in

ENUM

DTD declaration

<!ELEMENT ENUMVALUE
(META)*
>

<!ATTLIST ENUMVALUE
NAME CDATA #REQUIRED
OVERRIDE CDATA #IMPLIED
HOSTVALUE CDATA #IMPLIED
USEASNULL (TRUE|YES|yes|Y|y|ON|On|on|true|True|1|FALSE|NO|no|N|n|OFF|Off|off|false|False|0) #IMPLIED
SHORTDESC CDATA #IMPLIED
>