Validation Actions in the User Interface

Use one of the actions for validating the current document:

  • Select menu Document+XML DocumentValidate document (Ctrl+Shift+V) or click the button Validate document available in the Validate toolbar to return an error result-list in the Message panel. Mark-up of current document is checked to conform with the specified DTD, XML Schema or Relax NG schema rules. It caches the schema and the next execution of the action uses the cached schema.

  • Select menu Document+XML DocumentReset cache and validate or click the button Reset cache and validate available in the Validate toolbar to reset the cache with the schema and validate the document. It returns an error result-list in the Message panel. Mark-up of current document is checked to conform with the specified DTD, XML Schema or Relax NG schema rules.

  • Select menu Document+XML DocumentExternal Validation or click the button External validation available in the Validate toolbar to display the External Validation dialog, used to select the external schemas (XML Schema, DTD, Relax NG, NRL, NVDL, Schematron schema) and to execute the Validation operation on the current document using the selected schemas. Returns an error result-list in the Message panel. Mark-up of current document is checked to conform with the specified schemas rules. The External Validation action does not work for files loaded through an <oXygen/> custom protocol plugin developed independently and added to <oXygen/> after installation.

    Figure 4.34. The External validation dialog

    The External validation dialog

  • Select menu Document+XML DocumentOpen external schema or click the button Open external schema available in the Document toolbar to open the schema used for validating the current document in a new editor.

  • Select contextual menu of Project Panel, Validate Selection to validate all selected files with their declared schemas.

  • Select contextual menu of Project Panel, Validate Selection with ... to select a schema and validate all selected files with that schema.

The button Validation options available on the Validate toolbar allows quick access to the validation options of the built-in validator in the <oXygen/> user preferences.

Also you can select several files in the Project panel and validate them with one click by selecting the action Validate selection or the action Validate selection with ... available from the contextual menu of the Project view.

If there are too many validation errors and the validation process is long you can limit the maximum number of reported errors.