Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-206

[configuration] DTD validation on loading xml based configurations

    Details

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

      Operating System: All
      Platform: All

    • Bugzilla Id:
      31616

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              austvold@colibria.com Ørjan Austvold
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: