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

[configuration] DTD validation on loading xml based configurations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: