If I have an xml attribute that is declared like:
for child in root:
print(child.attrib)
and it prints out all of my child nodes:
{'action': 'Stay', 'response': ''}
{'action': 'Enemy Charging User', 'response': ''}
{'action': 'Move', 'response': ''}
is there a way I can just convert the actions to a string list where I can use the elements from it? for example 'Stay', 'Enemy Charging User', and 'Move' would convert to strings and be stored into a string list called l1[] where I can say call l1[0] and print out 'Stay'?