A new property jdk.xml.dtd.support
is introduced
that determines how XML processors handle DTDs. The new property
can be set on factory APIs, as a Java system property, or in the
JAXP Configuration File. The new property affects all XML
processors uniformly.
The new property complements the two existing DTD properties:
disallow-doctype-decl
(fully qualified name:
http://apache.org/xml/features/disallow-doctype-decl
),
which is applicable only to the DOM and SAX processors, and
supportDTD
(javax.xml.stream.supportDTD
),
which is applicable only to the StAX processor. When one of these
existing properties is set on the respective processor factory, its
value will take precedence over any value specified for the
jdk.xml.dtd.support
property.
For further information, see the Configuration section of the
java.xml
module summary.