Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-206

[configuration] DTD validation on loading xml based configurations

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Both XMLConfiguration and HierarchicalXMLConfiguration should support validation
      of the XML configuration file against a DTD.

      I would suggest adding a setter to allow the user to set an EntityResolver
      before load is called. commons-configuration should apply the EntityResolver if
      set, and supply a log-reporting ErrorHandler.

      Since XMLConfiguration and HierarchicalXMLConfiguration do not share code for
      XML file loading (shouldn't they?), the enhancement must be added to both classes.

        Activity

        Ørjan Austvold created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 31616 12341796
        Henri Yandell made changes -
        Project Commons [ 12310458 ] Commons Configuration [ 12310467 ]
        Component/s Configuration [ 12311107 ]
        Affects Version/s unspecified [ 12311647 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Key COM-1644 CONFIGURATION-206

          People

          • Assignee:
            Unassigned
            Reporter:
            Ørjan Austvold
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development