| Validating XML Documents / Validating XML Documents Against a Schema | |
Use one of the actions for validating the currently edited document:
Validate button from the Validate toolbar. An error
list is presented in the message panel. Mark-up of current document is checked to conform
with the specified DTD, XML Schema or Relax NG schema rules. This action also re-parses the
XML catalogs and resets the schema used for content completion.
Validate
(cached) button from the Validate toolbar. This action
caches the schema, allowing it to be reused for the next validation. Mark-up of the current
document is checked to conform with the specified DTD, XML Schema or Relax NG schema
rules.
Validate with button from the Validate toolbar. You
can use this action to validate the current document using a schema of your choice (XML
Schema, DTD, Relax NG, NVDL, Schematron schema), other than the associated one. An error
list is presented in the message panel. Mark-up of current document is checked to conform
with the specified schema rules.
Clear
Validation Markers button 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 Package Explorer or Navigator and validate them with one click by selecting the action Validate selection, the action Validate selection with Schema ... or the action Configure Validation Scenario ... available from the contextual menu of that view, the submenu Batch Validate.
In case too many validation errors are detected and the validation process takes too long, you can limit the maximum number of reported errors from the Preferences page.