Validation Actions in the User Interface

Use one of the actions for validating the current document:

  • Select menu XMLValidate 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 XMLReset 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 XMLExternal Validation (Ctrl+Shift+H) 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.

    Figure 4.29. The External validation dialog

    The External validation dialog

  • Select contextual menu of Navigator or Package Explorer view, Batch ValidationValidate to validate all selected files with their declared schemas.

  • Select contextual menu of Navigator or Package Explorer view, Batch ValidationValidate With ... to select a schema and validate all selected files with that schema.

  • XML Clear validation markers (Ctrl+Shift+K) or click the toolbar button Clear validation markers to clear the error markers added to the Problems view at the last validation of the current edited document.

Also you can select several files in the views like Package Explorer, Navigator and validate them with one click by selecting the action Validate selection or the action Validate selection with ... available from the contextual menu of that view, the submenu Batch Validate.

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