Set the value of a property.
The property name is any fully-qualified URI. It is
possible for a SchemaFactory to recognize a property name but
to be unable to change the current value.
All implementations that implement JAXP 1.5 or newer are required to
support the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD and
javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA properties.
Access to external DTDs in Schema files is restricted to the protocols
specified by the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD property.
If access is denied during the creation of new Schema due to the restriction
of this property, org.xml.sax.SAXException will be thrown by the
newSchema(Source) or newSchema(File)
or newSchema(URL) or newSchema(Source[]) method.
Access to external DTDs in xml source files is restricted to the protocols
specified by the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD property.
If access is denied during validation due to the restriction
of this property, org.xml.sax.SAXException will be thrown by the
javax.xml.validation.Validator.validate(Source) or
javax.xml.validation.Validator.validate(Source, Result) method.
Access to external reference set by the schemaLocation attribute is
restricted to the protocols specified by the
javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA property.
If access is denied during validation due to the restriction of this property,
org.xml.sax.SAXException will be thrown by the
javax.xml.validation.Validator.validate(Source) or
javax.xml.validation.Validator.validate(Source, Result) method.
Access to external reference set by the Import
and Include element is restricted to the protocols specified by the
javax.xml.XMLConstants.ACCESS_EXTERNAL_SCHEMA property.
If access is denied during the creation of new Schema due to the restriction
of this property, org.xml.sax.SAXException will be thrown by the
newSchema(Source) or newSchema(File)
or newSchema(URL) or newSchema(Source[]) method.
name | The property name, which is a non-null fully-qualified URI. | |
object | The requested value for the property. |
SAXNotRecognizedException | If the property value can't be assigned or retrieved. | |
SAXNotSupportedException | When the
SchemaFactory recognizes the property name but
cannot set the requested value. | |
NullPointerException | If name is null. |
Diagram: validation