Previous: , Up: Advanced topics in ODT export   [Contents][Index]


Validating OpenDocument XML

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 (emacs)File Archives. The contents of .odt files are in .xml. For general help with validation—and schema-sensitive editing—of XML files: See (nxml-mode)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.