21. schema
Prev | Chapter 7. Configuration elements | Next

## 21. schema

    <schema>
      Content: location | noNamespaceLocation | (location noNamespaceLocation)
    </schema>

    <location>
      Content: list of anyURI pairs
    </location>

    <noNamespaceLocation>
      Content: anyURI
    </noNamespaceLocation>

Use the W3C XML Schema specified by this element to constrain the document.

The content of child element `location` is identical to the one of standard attribute `xsi:schemaLocation`. The content of child element `noNamespaceLocation` is identical to the one of standard attribute `xsi:noNamespaceSchemaLocation`.

Note that

- if a document contains a document type declaration (<!DOCTYPE>) which defines elements,

- or if the root element of a document has `xsi:schemaLocation`/`xsi:noNamespaceSchemaLocation` attributes,

- of if a document contains a <?xxe-relaxng-schema location="..."?> processing instruction,

the grammar specified this way is used and the W3C XML Schema specified in the configuration file is ignored.

Example:

      <schema>
        <location>http://www.xmlmind.com/xmleditor/schema/configuration
                  xsd/configuration.xsd</location>
      </schema>

It possible to use both a `schema` configuration element and a dtd configuration element but in this case, the `dtd` configuration element cannot be used to specify a content model. It may be used to specify a set of character entities.

Prev | Up | Next
20. saveOptions | Home | 22. schematron