def METHOD_NAME(tree):
    """
    Adjusts lxml's pretty-printed XML format to match Xcode's default and avoid
    semantically uninteresting diffs
    :param tree: the lxml tree to format
    :return: a pretty-printed string matching Xcode's plist format
    """
    plist_string = VersionBumper.tree_to_string(tree)
    flags = re.MULTILINE | re.IGNORECASE
    # Prepend XML prolog. This could be partially done with `lxml.tostring`'s
    # xml_declaration option, but that returns single-quoted attributes
    formatted_plist = '<?xml version="1.0" encoding="UTF-8"?>\n' + plist_string
    # Replace self-closing '<string/>' tags with explicitly closed tags
    formatted_plist = re.sub(r"<string/>", "<string></string>", formatted_plist, flags=flags)
    # Adjust lxml's default space-based indentation to Xcode's tab-based. Use the
    # multiline flag and match beginning of each line.
    formatted_plist = re.sub(r"^\s+<", "\t<", formatted_plist, flags=flags)
    return formatted_plist