Associating a Schema to XML Documents
Oxygen XML Editor plugin relies on schemas to validate XML documents and to compute valid proposals for the Content Completion Assistant.
Supported Types of Schema
The following schema types are supported:
- W3C XML Schema 1.0 and 1.1 (with and without embedded Schematron rules)
- DTD
- Relax NG - XML syntax (with and without embedded Schematron rules)
- Relax NG - compact syntax
- NVDL
- Schematron (both ISO Schematron and Schematron 1.5)
Detecting a Schema
For the purposes of using validation and content completion mechanisms, Oxygen XML Editor plugin tries to detect a schema by searching multiple locations, in the following order:
- The schema defined in a validation scenario.
- The schema defined in the validation scenarios associated with the particular document type (if defined).
- The schema that is associated directly in the XML document.
Note
If a DTD schema is specified in the document, the content completion for Author mode is based on this schema (even if there is already one detected from the validation scenario). - The schema defined in the Document Type Association.
In addition, the locations of the schema can be mapped through the use of an XML Catalog. For more information, see Resolving Schema Locations Through XML Catalogs .