This is the official manual for the latest Org-mode release.

Table of Contents

Previous: Customizing tables in ODT export, Up: Advanced topics in ODT export


Validating OpenDocument XML

Sometimes ODT format files may not open due to .odt file corruption. To verify if the .odt file is corrupt, validate it against the OpenDocument RELAX NG Compact Syntax—RNC—schema. But first the .odt files have to be decompressed using ‘zip’. Note that .odt files are ‘zip’ archives: see File Archives. The contents of .odt files are in .xml. For general help with validation—and schema-sensitive editing—of XML files: see Introduction.

Customize org-odt-schema-dir to point to a directory with OpenDocument .rnc files and the needed schema-locating rules. The ODT export back-end takes care of updating the rng-schema-locating-files.