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

User guide: Validation of XML configuration files: config.load()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • Documentation
    • None

    Description

      In the following section of the user guide it would be a good point to write, that when you use config.load() to activate the previously set validation of the schema, the default behavior is that your configuration file is "cloned":

      http://commons.apache.org/proper/commons-configuration/userguide/howto_xml.html#Validation_of_XML_configuration_files

      That means, that calls of config.getList(...) will contain all results twice!

      Perhaps you better use config.refresh() here? The using of config.reload() does not activate the validation of the schema.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maroonyw Andy Schönemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: