Nico Feiertag wrote: > > is it easily possible the enhance the "check" method provided in XMLMind > such as to prohibit the use of special words, phrases, element types, > etc.?
> I meant the validity-check. --> Yes, it is not difficult to do that. Solution #1 (no Java programming): ---------------------------------- [a] Write a *Schematron* schema (not really a schema, business rules in fact) that checks for forbidden words and elements. See http://www.schematron.com/spec.html [b] Declare this Schematron schema in the configuration file associated to the type of document you use using the "schematron" configuration element. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/schematron.html Solution #2 (generalization of solution #1): -------------------------------------------- [a] Write a DocumentHook in Java[tm] where the "documentChecked" method does all the checks you need. See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/documenthook.html See also http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/dochook/DocumentHookBase.html [b] Declare this DocumentHook in the configuration file associated to the type of document you use using the "documentHook" configuration element. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/documentHook.html --> In all cases, doing this will not forbid the user to save her/his document. It will just cause semantic errors to appear in the Validity tool and it will also cause the Validity icon (bottom/left of main window) to turn to red.

