public void setFeature (String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException

Set a feature for this ValidatorHandler.

Feature can be used to control the way a ValidatorHandler parses schemas. The feature name is any fully-qualified URI. It is possible for a SchemaFactory to expose a feature value but to be unable to change the current value. Some feature values may be immutable or mutable only in specific contexts, such as before, during, or after a validation.

All implementations are required to support the javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING feature. When the feature is:

Parameters:
name    The feature name, which is a non-null fully-qualified URI.
value    The requested value of the feature (true or false).

Exceptions:
SAXNotRecognizedException    If the feature value can't be assigned or retrieved.
SAXNotSupportedException    When the ValidatorHandler recognizes the feature name but cannot set the requested value.
NullPointerException    When name is null.

See also:
getFeature(String)