def METHOD_NAME(xml_file):
    with open(xml_file, 'r') as f:
        lines = f.readlines()
    # replace first line with <?xml version='1.0' encoding='utf-8' standalone='yes' ?>
    lines[0] = '<?xml version=\'1.0\' encoding=\'utf-8\' standalone=\'yes\' ?>\n'
    with open(xml_file, 'w') as f:
        f.writelines(lines)