

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

dataset/ETHPy150Open datamade/usaddress/parse_scripts/parse.py xmlToAddrList/VarMisuse@93/113 `address`->`xml_file`