How to validate an OpenDocument (ODF) document

To validate an OpenDocument document, you must include the following Relax NG Schema in the OpenDocument document: http://www.oasis-open.org/committees/download.php/20845/OpenDocument-schema-v1.1-cs1.rng. Once you've included this schema in your OpenDocument document, XMLBlueprint XML Editor will support XML Completion for your OpenDocument document. To validate your OpenDocument document, open it in XMLBlueprint XML Editor and click XML > Validate.

To use this Relax NG Schema, start your OpenDocument document with:

<?xml version="1.0" encoding="utf-8"?>

<?blueprint

      namespace="urn:oasis:names:tc:opendocument:xmlns:office:1.0"

      schema="http://www.oasis-open.org/committees/download.php/20845/OpenDocument-schema-v1.1-cs1.rng"?>

<document xmlns="urn:oasis:names:tc:opendocument:xmlns:office:1.0">

</document>