Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6399139

DocumentBuilderFactory does not support "http://apache.org/xml/features/validation/dynamic" feature

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 1.3.3
    • 1.3.0
    • xml

      A call to

        javax.xml.parsers.DocumentBuilderFactory.setFeature(
            "http://apache.org/xml/features/validation/dynamic", true);

      causes the following exception at runtime:

        javax.xml.parsers.ParserConfigurationException:
        jaxp_feature_not_supported: Feature
        "http://apache.org/xml/features/validation/dynamic" is not supported.
       
      In an environment where an XML document may need to be validated against DTDs or schemas, the lack of support for this feature requires any document that needs to be validated against a DTD to be parsed twice: The first time in order to determine whether the XML document references a DTD or schema, and the second time to parse it with DTD validation enabled, by calling "setValidating(true)" on the DocumentBuilderFactory.

            sreddysunw Sunitha Reddy (Inactive)
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: