but sir, i think making it in python is most easiest way.. but manipulating those codes are hard to understand... i don't know where they came from...
example of it...
if version_inf == 2:
crc_file_info_file_item = crc.createElement("Item")
crc_file_info_file_item.setAttribute("Name", file_name)
crc_file_info_file_item.setAttribute("Size", str(len(file_data)))
crc_file_info_file_item.setAttribute("Version", str(0))
crc_file_info_file_item.setAttribute("CheckSum", "%08x" % file_data_crc32)
crc_file_info_file.appendChild(crc_file_info_file_ item)
elif version_inf == 3:
crc_file_info_file_item = crc.createElement("File")
crc_file_info_file_item.setAttribute("Name", file_name)
crc_file_info_file_item.setAttribute("Size", str(len(file_data)))
crc_file_info_file_item.setAttribute("CompressedSi ze", str(len(compressed_file_data)))
crc_file_info_file_item.setAttribute("CheckSum", "%08x" % file_data_crc32)
crc_file_info_file_item.setAttribute("FileTime", "%08x" % os.path.getmtime(file_path))
crc_file_info_file_item.setAttribute("Algorithm", str(0))
crc_file_info.appendChild(crc_file_info_file_item)
... i don't know how to calculate it..