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.

Go to menu Document > Schema > Associate schema... or click the Associate schema toolbar button to select the schema that will be associated with the XML document. The following dialog is displayed:

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

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.