Making the Schema Association Explicit in the XML Instance Document

The schema used by the Content Completion Assistant and document validation engine can be associated with the document using the Associate Schema action. For most of the schema types, it uses the xml-model processing instruction, the exceptions being:

The association can specify a relative file path or a URL of the schema. The advantage of relative file path is that you can configure the schema at file level instead of document type level.

Select the Associate schema action from the Document > Schema menu or the Document toolbar to select the schema that will be associated with the XML document. The Associate Schema dialog box is displayed:

Figure: The Associate Schema Dialog Box

The available options are:
The association with an XML Schema is added as an attribute of the root element. The Associate schema action adds one of the following:

The association with a DTD is added as a DOCTYPE declaration. The association with a Relax NG , Schematron or NVDL schema is added as xml-model processing instruction.