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:
true: the implementation will limit XML processing to conform to implementation limits.
Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources.
If XML processing is limited for security reasons, it will be reported via a call to the registered
ErrorHandler.fatalError(SAXParseException exception).
See setErrorHandler(ErrorHandler errorHandler).
false: the implementation will processing XML according to the XML specifications without
regard to possible implementation limits.
name | The feature name, which is a non-null fully-qualified URI. | |
value | The requested value of the feature (true or false). |
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. |
getFeature(String)
Diagram: Handler