|Associate a Schema to a Document / Setting a Schema for Content Completion|
When trying to detect a schema, Oxygen XML Developer searches in multiple locations, in the exact following order:
The schema has one of the following types: XML Schema, XML Schema with embedded Schematron rules, Relax NG (XML syntax or compact syntax), Relax NG (XML syntax) with embedded Schematron rules, Schematron, DTD, NVDL.
The rules are applied in the order they appear in the table and take into account the local name of the root element, the default namespace and the file name of the document.
The editor is creating the content completion lists by analysing the specified schema and the current context (the position in the editor). If you change the schema, then the list of tags to be inserted is updated.
Figure: Content Completion Driven by DocBook DTD