Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306632 Add a JDK Property for specifying DTD support
  3. JDK-8313719

Release Note: Add a JDK Property for Specifying DTD Support

XMLWordPrintable

      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.

            joehw Joe Wang
            joehw Joe Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: