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

Set the value of a feature flag.

Feature can be used to control the way a Validator parses schemas, although Validators are not required to recognize any specific feature names.

The feature name is any fully-qualified URI. It is possible for a Validator 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.

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 Validator recognizes the feature name but cannot set the requested value.
NullPointerException     When the name parameter is null.

See also:
getFeature(String)