Ask Your Question

Revision history [back]

ODF documents, unless they are flat XML document (.fodt, .fods, ...) are zip containers with several .xml streams (content.xml, styles.xml, images, ...). Any capable (un)zip implementation should be able to detect the CRC errors I mentioned there. To inspect streams just unzip the document that already gives the errors I mentioned, zip integrity can also be checked by the InfoZip implementation's unzip -t filename.ods (for example) command.

To inspect an XML stream I usually use our dev-tools prettyprint command, which nicely reformats the two-long-lines content to indented elements, and in this case also indicates the error positions because of unmatched closures where data is corrupted.

The ODF file streams are defined along with the ODF specification specifically Part 3: Packages.