dom.validateSchemaConstraints(); dom.validateKeyRefIntegrity (true); //true notify the error controller about changes