gpt4 book ai didi

c++ - 试图从 C++ 程序中的 openoffice 电子表格 ods 文件中提取 contents.xml

转载 作者:行者123 更新时间:2023-11-28 07:37:15 25 4
gpt4 key购买 nike

有人知道解压 ods 文件并读取 contents.xml 文件的方法吗?

在我的程序中,我希望能够打开我的 ods 文件,并提取 xml 文件进行解析。

我看过 minizip,但这是一个 ods 文件而不是 zip 文件。还有其他办法吗?

感谢任何帮助,非常感谢,布莱恩

最佳答案

尽管有文件扩展名,它仍然是一个 zip 存档,所以 minizip 应该可以工作。

The original OpenDocument format consists of an XML document that has as its root element. OpenDocument files can also take the format of a ZIP compressed archive containing a number of files and directories; these can contain binary content and benefit from ZIP's lossless compression to reduce file size.

Source

关于c++ - 试图从 C++ 程序中的 openoffice 电子表格 ods 文件中提取 contents.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16548444/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com