Not sure what you're after, but this should get you started:
import xmltodict
with open('change_user.xml') as fd:
doc = xmltodict.parse(fd.read())
doc['change']['log'] #use tags to maneuver through dicts
Prints:
OrderedDict([('@id', '333'),
('@action', 'create'),
('property',
[OrderedDict([('@id', '52122'),
('old', None),
('new',
OrderedDict([('item',
[OrderedDict([('@id', '562622'),
('@toString',
'Test')]),
OrderedDict([('@id', '033362'),
('@toString',
'Test2')])])]))]),
OrderedDict([('@id', '33563'),
('new',
OrderedDict([('item',
OrderedDict([('@id', '44322'),
('@toString',
'Test3')]))]))]),
OrderedDict([('@id', '21733'),
('old', None),
('new',
OrderedDict([('@id', '12341212'),
('@toString', 'Test4')]))])])])
Source: http://docs.python-guide.org/en/latest/scenarios/xml/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…