String
The String element defines a single or double byte string. The String element is a child element of DataModel or Block.
To indicate this is a numerical string use the NumericalString hint.
<String value="Hello World!" />
<String value="Null terminated string" nullTerminated="true" />
Attributes:
-
name — Name of the data model [optional]
-
length — Length in characters of the string [optional]
-
lengthType — Units of the length attribute (defaults to bytes) [optional]
-
type — Character encoding type, defaults to "ascii". Valid options are: ascii, utf7, utf8, utf16, utf16be, utf32 [optional]
-
nullTerminated — Is this string null terminated (true/false) [optional]
-
padCharacter — Character to pad string with to length (default is 0x00) [optional]
-
token — This element should be treated as a token when parsing, defaults to False [optional]
-
constraint — A constraint in the form of a scripting expression. Used during data cracking [optional]
-
mutable — Is data element changeable (should it be mutated), defaults to true [optional]
-
minOccurs — The minimum number of times this block must occur (default is 1) [optional]
-
maxOccurs — The maximum number of times this block can occur (default is 1) [optional]
Valid Child-Elements:
-
Analyzer — Attach an analyzer to this element [optional]


