[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:
 8=FIX.4.4|9=40|35=7|49=P|555=2|600=A|601=B|600=C|601=D

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