Streamline with Content Completion

Oxygen XML Author plugin 's intelligent Content Completion feature enables rapid, in-line identification and insertion of structured language elements, attributes and in some cases their parameter options.

Content Completion Assistant

Oxygen XML Author plugin logs the URL of the detected schema in the Status view.

If the Content Completion assistant is enabled in user preferences (the option Use Content Completion), then it is displayed:

Elements are highlighted in the list using the Up and Down cursor keys. Here are the options to insert the selected content:

Note: When the DTD, XML Schema or RELAX NG schema specifies required child elements for the newly added element, they will be inserted automatically only if the Add Element Content option (found in Preferences > Editor > Content Completion options page) is enabled. The Content Completion assistant can also add optional content and first choice particle, as specified in the DTD or XML Schema or RELAX NG schema, for the element if these two options are enabled.

After inserting the element, the cursor will be positioned:

The content assistant can be started at any time by pressing CTRL+Space The effect is that the context-sensitive list of proposals will be shown in the caret's current position if element, attribute or attribute value insertion makes sense. The Content Completion assistant is displayed:

The items that populate the Content Completion assistant are dependent on the element structure specified in the DTD, XML Schema, Relax NG (full or compact syntax) schema, or NVDL schema associated to the edited document.

The number and type of elements displayed by the assistant is dependent on the cursor's current position in the structured document. The child elements displayed within a given element are defined by the structure of the specified DTD, XML Schema, Relax NG (full or compact syntax) schema, or NVDL schema. All elements that can't be child elements of the current element according to the specified schema are not displayed.

If only one element name must be displayed by the content assistant then the assistant is not displayed anymore but this only option is automatically inserted in the document at the current cursor position.

A schema may declare certain attributes as ID or IDREF/IDREFS. When the document is validated, oXygen XML checks the uniqueness and correctness of the ID attributes. It also collects the attribute values declared in the document to prepare the content completion assistant's list of proposals. This is available for documents that use DTD, XML Schema and Relax NG schema.

Also values of all the xml:id attributes are treated as ID attributes and collected and displayed by the Content Completion assistant as possible values for anyURI attributes defined in the schema of the edited document. This works only for XML Schema and Relax NG schemas.

For documents that use an XML Schema or Relax NG schema the content assistant offers proposals for attributes and elements values that have as type an enumeration of tokens. Also if a default value or a fixed value is defined in the XML Schema used in validation for an attribute or element then that value is offered in the content completion window.

The operation of the Content Completion assistant is configured by the options available in the options group called Content Completion.