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:
true: the implementation will limit XML processing to conform to implementation limits.
Examples include enity 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
SchemaFactory recognizes the feature name but
cannot set the requested value. | |
NullPointerException | If name is null. |
getFeature(String)
Diagram: validation