How can I uncompress a LibreOffice document to get its XML internals, then make a new document from them?
I understand that LibreOffice document files (.odt, .ods, etc) are compressed archives containing multiple XML files internally. I want to open up a LO document so that I can get at the XML internal files. Then I want to be able to generate a new LO document file from those XML internal files.
I might want to modify the XML internal files. For instance, I might want to restore a document as in question, "Table changed multiple cells to 0", which is also bug 131025. This means I would be editing some of the XML files — but those edits are not part of this question.
If there is some documentation on how to uncompress and unpack LibreOffice documents into their XML internal files, and how to reverse that process, then I'd appreciate a link to that documentation. Otherwise, an answer here would be a helpful reference.
I suspect that the same process applies to all LibreOffice document types: .odt for Writer, .ods for Calc, etc. If there are differences, please include that in the answer also.
They are all just zip files - depending on your OS you may be able to use right click and choose Unzip or equivalent, or use a command line tool such as unzip in Linux.
Or you could rename them as .zip to allow use of whatever tool your OS associates with zip files.
@robleyd That sounds like an answer. Maybe submit it again, as an answer?