[erlang-questions] Erlang and FIX protocol

Per Melin per.melin@REDACTED
Fri May 4 18:15:25 CEST 2012

On May 4, 2012, at 09:30 , Max Lapshin wrote:

> There is other problem with long structs:  it is impossible to dump
> them with ~p and understand, what is written there.  proplist is
> better in this sense.

I only generate lookup tables from XML, not the parser, so records were out of the question for me. I use proplists.

For example:

Parses to:
 {app,  % Class of message: application or admin
  {advertisement,  % Message type
    [{sender_comp_id, "P"}],  % Header
    [{no_legs, [[{leg_symbol, "A"}, {leg_symbol_sfx, "B"}],
                [{leg_symbol, "C"}, {leg_symbol_sfx, "D"}]]}],
    []}}  % Trailer

More information about the erlang-questions mailing list