Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330542 Template for Creating Strict JAXP Configuration File
  3. JDK-8330605

Release Note: Template for Creating Strict JAXP Configuration File

XMLWordPrintable

      Future JDK releases will continue to move towards making XML processing more restrictive by default. In order to help developers prepare for these changes, this release includes a <a href="https://docs.oracle.com/en/java/javase/23/docs/api/java.xml/module-summary.html#Conf">JAXP Configuration File</a> template, `$JAVA_HOME/conf/jaxp-strict.properties.template`, specifying more restrictive XML processing settings.

      The following steps may be used to test an application with the JAXP Configuration file template:

      - Copy the template file to a location outside of `$JAVA_HOME/conf`:

           `cp $JAVA_HOME/conf/jaxp-strict.properties.template. /<my_path>/jaxp-strict.properties`

      - Run the application specifying the system property `java.xml.config.file` to the path where the JAXP configuration file template was copied in order to override the default JAXP configuration:

           `java -Djava.xml.config.file=/<my_path>/jaxp-strict.properties myApp`

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

              Created:
              Updated:
              Resolved: