This feature has been superseded by Liquid XML Objects. (The original functionality is still included in the product) |
Use Liquid XML Objects |
Property | Description | |||
Property Name | DataTypes | |||
Property Type | EncodedCharacterString | |||
Accessors | None | |||
Description | Allows you to set the Fast Infoset Encoding for each Xml Data Type. | |||
Remarks |
DataTypes is an array of EncodedCharacterString structures, each representing an Xml Data Type. The values used to index into the array are defined in the global ItemType enum as follows: enum Conversions.ConversionType So the EncodedCharacterString structure stored at DataTypes[ItemType_i4] represents the encoding method for all i4 Xml Data Type values within the Fast Infoset document. EncodedCharacterString is a structure defined as follows: struct EncodedCharacterString Each EncodedCharacterString has an encodedCharacterType and a index value. The encodedCharacterType is an enum defined as follows: enum EncodedCharacterType The encodedCharacterType represents the type of encoding to be applied, whilst the index represents which encoding of the selected type to use. The Default value in EncodedCharacterString for all data types is EncodedCharacterType_Default which uses no encoding, so the index is not used. Setting the encodedCharacterType to EncodedCharacterType_RestrictedTypes allows you to set index to one of the following encoding values: FastInfosetConsts.RESTRICTED_ALPHABET_NUMERIC = 1; Setting the encodedCharacterType to EncodedCharacterType_EncodingAlgorithm allows you to set dwIndex to one of the following encoding values: FastInfosetConsts.ENCODING_ALGORITHM_HEXADECIMAL = 1; The SuggestedValues method explains the suggested encoding combinations for each Xml Data Type. Example: Setting the Fast Infoset Encoding for all i4 Xml Data Types to use the Fast Infoset built in Numeric Restricted Alphabet. SerializationContext context = SerializationContext.Default; fiContext.DataTypes[(int)Conversions.ConversionType.type_i4].encodedCharacterType = EncodedCharacterType.EncodedCharacterType_RestrictedTypes;
|