1. Validity state

Clicking on this button displays Validity tool, unless no validity errors are found in current document, in which case an OK message is displayed in the status bar.

This button is disabled if current document is not constrained by a grammar.

[Tip]

Current document validity is automatically checked each time the document is saved, therefore, unless you are fixing an invalid document, you don't really need to explicitly use this button.

The icon contained in this button shows the validity state of current document (from least severe error to most severe error):

IconNameMeaning
N/A

The document is valid and has no semantic errors.

Invalid Reference

The document has minor validity errors such as bad cross-references.

[Tip]

Working on a document which has bad cross-references is very common so you should not be alarmed by this situation.

Semantic Warning

The document is valid but has semantic warnings. This happens when the document being edited is itself a W3C XML Schema or a RELAX NG schema or when a user-defined validateHook reports such warnings (See Section 34, “validateHook” in XMLmind XML Editor - Configuration and Deployment).

Semantic Error

The document is valid but has semantic errors. This happens when the document being edited is itself a W3C XML Schema or a RELAX NG schema or when a user-defined validateHook reports such errors (See Section 34, “validateHook” in XMLmind XML Editor - Configuration and Deployment).

Invalid Data

The document has validity errors signaling bad values for attributes or for elements.

Invalid Structure

This document has severe validity errors such an invalid child sequence inside an element. It is not a good idea to keep working on a document with such severe validity errors because XXE has not been designed to be convenient to use in such situation.

[Tip]

After fixing some structure errors using XXE, save and then reload the document.

This will automatically discard superfluous white space which was not detected at first because of the validity errors. This trick is much faster that trying to remove invalid white space text nodes by hand.