Re: [Quickfix-developers] MessageCracker - python
Brought to you by:
orenmnero
From: Berto <jas...@gm...> - 2015-09-29 20:00:14
|
in pyton I did following: from bs4 import BeautifulSoup as Soup class Application(fix.Application): def fix_dict(self): datadict={} obj="/.../.../.../QuickFix/Dictionary/FIX42.xml" handler = open(obj).read() soup = Soup(handler,'xml') for s in soup.findAll('fields'): for m in s.findAll('field'): msg_attrs =m.attrs datadict[int(msg_attrs["number"])]=msg_attrs["name"] return datadict so given a tag => you get the field name once message fromApp Hope this helps |