def xmlToAddrList(xml_file):
    tree = etree.parse(xml_file)
    root = tree.getroot()
    addr_list=[]
    for element in root:
        if element.tag == 'node' and element.tag =='way':
            address={}
            for x in element.iter('tag'):
                addr = ast.literal_eval(str(x.attrib))
                address[addr['k']]=addr['v']
            addr_list.append(address)
    return addr_list


# natural addresses (in addr:full from osm xml data) -> training file (xml)
dataset/ETHPy150Open datamade/usaddress/parse_scripts/parse.py/xmlToAddrList/operator `or` -> `and`