file = 'D:\\tmp\\example.xmind'
workbook = xmind.load(file)
sheet = workbook.getPrimarySheet()
sheet.setTitle("first_sheet")
root_topic = sheet.getRootTopic() # xmind中心主题
root_topic.setTitle("ROOT")
subtopic = root_topic.addSubTopic()
subtopic.setTitle('hello')
print(workbook.getData())
xmind.save(workbook,file)
运行不会报错,但是创建号的xmind文件用XMind.exe打开时会报错"not a valid XMind File"