9. checkValidity
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 9. checkValidity

    [ 'filterDuplicateIDs' ]?

Checks the validity of the document and, if validity errors are found, displays a modal dialog box (similar to the Validity tool) listing them.

If option `filterDuplicateIDs` is specified, false duplicate ID errors due to the multiple inclusions of the same elements are removed from the list displayed to the user.

This command returns an array of `com.xmlmind.xml.validate.Diagnostic`. This array is empty if no validity errors have been found.

This command has been added mainly to make it easier building simple XML editors using XXE components (that is, not XXE itself).

Prev | Up | Next
8. center | Home | 10. confirm