def METHOD_NAME(apath, outpath):
    count = 0
    for afile in os.listdir(apath):
        if not afile.endswith('.xml'):
            continue
        afile = os.path.join(apath, afile)
        parsexml(afile, outpath)
        count += 1
        print('done: {} [{}]'.format(afile, count))