I am trying to read an array from an XML data file with the shown structure. By using How do I parse XML in Python? I received the following without my array.
<event id="1" settings="183" digitizer="LoremID" timestamp="42">
<triggershift samples="0"></triggershift>
<trace channel="0">2 4 1 2 1 23 5 4 2 4 2
</trace>
</event>
Output:
{'id': '1',
'settings': '183',
'digitizer': 'LoremID',
'timestamp': '42',
'triggershift': {'samples': '0'},
'trace': {'channel': '0'}}
Does anyone have ideas on how to read both the settings and the array?
Thanks in advance.