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>

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