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

Set a feature for this SchemaFactory, Schemas created by this factory, and by extension, Validators and ValidatorHandlers created by those Schemas.

Implementors and developers should pay particular attention to how the special Schema object returned by newSchema() is processed. In some cases, for example, when the SchemaFactory and the class actually loading the schema come from different implementations, it may not be possible for SchemaFactory features to be inherited automatically. Developers should make sure that features, such as secure processing, are explicitly set in both places.

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.

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

See also:
getFeature(String)