Message Sets: TDS properties for global attribute binary types

The TDS format properties for global attribute binary types.

The TDS Format properties described here apply to:

  • Objects: Global Attribute
  • Binary schema types: base64Binary, hexBinary

Field identification

Property Type Meaning
Tag String Specify the value that is used to identify the object in a message bit stream.

If the object is simple and the Data Element Separation property of the complex type or types in which the object is a child is Tagged Delimited, Tagged Fixed Length, or Tagged Encoded Length, this property must contain a non-empty value.

If the object is a complex element, and the Data Element Separation property of its parent is Tagged Delimited, Tagged Fixed Length, or Tagged Encoded Length, the property can contain an empty value.

The value for this property must be unique for every element in the message set; that is, no two elements in the message set can contain the same value for this property.

Data Pattern String Specify the regular expression that the parser uses to identify the data in the message to assign to the object. This property is used when the Data Element Separation method is set to Use Data Pattern in the complex type. For more details, see Message Sets: Regular expression syntax.

Physical representation

Property Type Meaning
Physical Type Enumerated type This value of this property defaults to Binary. It cannot be changed.
Length Integer Specify the expected length of the object in length units.

A non-zero length must be specified if no Length Reference is specified.

The default is dependent on the setting of the message set property Derive default length from logical type. If Derive default length from logical type is selected, the default value is derived from any length or maxLength value constraint (schema facet) on the object's simple type.

Length Units Enumerated type Select the unit of length for the object.
Select one of the following options (some physical types do not offer both options):
  • Bytes. The length is given in bytes.
  • Characters. The length is given in characters. The number of bytes that are processed in the bit stream depends on the code page of the message.
    • For a single-byte code page (SBCS CCSID) such as "latin-1" (CCSID 850), the number of bytes is equal to the number of characters.
    • For a double-byte code page (DBCS CCSID) such as "UTF-16" (CCSID 1200), the number of bytes is exactly twice the number of characters.
    • For a multibyte code page (MBCS CCSID) such as "UTF-8" (CCSID 1208), the number of bytes depends on the contents of the bit stream. The parser reads one character at a time and determines whether the character comprises one or more bytes.

The default is dependent on the physical type of the object.