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

#### 12.9.11.5 Validating OpenDocument XML

Occasionally, you will discover that the document created by the ODT exporter cannot be opened by your favorite application. One of the common reasons for this is that the `.odt` file is corrupt. In such cases, you may want to validate the document against the OpenDocument RELAX NG Compact Syntax (RNC) schema.

For de-compressing the `.odt` file160: See (emacs)File Archives. For general help with validation (and schema-sensitive editing) of XML files: See (nxml-mode)Introduction.

If you have ready access to OpenDocument `.rnc` files and the needed schema-locating rules in a single folder, you can customize the variable `org-odt-schema-dir` to point to that directory. The ODT exporter will take care of updating the `rng-schema-locating-files` for you.

#### Footnotes

### (160)

`.odt` files are nothing but ‘`zip`’ archives