JDK-8313719 : Release Note: Add a JDK Property for Specifying DTD Support
  • Type: Sub-task
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 22
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2023-08-03
  • Updated: 2023-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22Unresolved
Description
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.
Comments
Note: please add a link to the "java.xml module summary" of Java 22 API doc.
04-08-2023