def _get_xml_declaration(version='1.0', encoding='UTF-8'):
    """Gets XML declaration (for the specified version and encoding).

    :param version: XML version
    :param encoding: encoding
    :return: XML declaration
    :rtype: str

    """
    return '<?xml version="' + version + '" encoding="' + encoding + '"?>'