commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Schönemann (JIRA) <j...@apache.org>
Subject [jira] [Created] (CONFIGURATION-549) User guide: Validation of XML configuration files: config.load()
Date Thu, 27 Jun 2013 11:12:20 GMT
Andy Schönemann created CONFIGURATION-549:
---------------------------------------------

             Summary: User guide: Validation of XML configuration files: config.load()
                 Key: CONFIGURATION-549
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-549
             Project: Commons Configuration
          Issue Type: Improvement
          Components: Documentation
            Reporter: Andy Schönemann
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message