The following Code produces an error, if there is only one \"car\" in \"garage\":
import xmltodict mydict = xmltodict.parse(xmlstringResults) for carsIn
This problem is discussed in this issue on Github. The xmltodict package now supports
d = xmltodict.parse(s, force_list={'car'})
Although this still doesn't create an empty list if the field is absent.