BizTalk Server has the following two modes for the algorithm to parse a flat file into XML:
By default, the setting for the
parser_optimization property is "speed." This setting is optimized to decrease parsing time. The "speed" setting can handle most flat files but cannot deal with all the ambiguities that the "complexity" setting can. The "complexity" mode is not quick but can handle a wider range of ambiguities.
There are five properties that cannot be changed in the BizTalk Server 2004 user interface. The following table lists the flat file node properties:
Collapse this tableExpand this table
Property | Values | Default value | Description |
---|
suppress_empty_nodes | true or false | false | Indicates whether to remove empty XML nodes after the parser generates XML instance data. |
generate_empty_nodes | true or false | true | Generates empty nodes for records that exist in the XML instance data. |
parser_optimization | speed or complexity | speed | Optimizing for speed decreases the parsing time at the cost of dealing with some ambiguities in data. Optimizing for complexity handles a wider range of ambiguities at the cost of processing speed. |
lookahead_depth | Any positive integer. A value of 0 (zero) indicates infinite lookahead. | 3 | Indicates how far to look ahead for matching data. |
allow_early_termination | true or false | false | Indicates whether positional records can terminate early (true) or must contain data for all record fields (false). |
Note If you set the
allow_early_termination property to true, early termination of a positional record is permitted in cases where the right-most or outermost field is less than its defined length.