Normally, as soon as emacs
associates your document with a schema,
validates your document against the schema with every
If validation is in effect and your document is not valid against the schema, the point where the document becomes invalid is shown with thin red underlining.
These commands will assist you in validating the document:
Move to the next location where the document structure is not valid. If the document isn't valid, the cursor will jump to the probable error, and display a message in the minibuffer explaining what it doesn't like.
If the document is valid from the cursor to the
end of the file, the message
To validate the entire document, move to the
top of the document with
Turn validation on or off. If validation is turned
on, in the status line's mode area you will see