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.