commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "raghutpk (Created) (JIRA)" <>
Subject [jira] [Created] (CONFIGURATION-468) Defining a XML Properties File in the Configuration Definition File.
Date Mon, 24 Oct 2011 05:36:32 GMT
Defining a XML Properties File in the Configuration Definition File.

                 Key: CONFIGURATION-468
             Project: Commons Configuration
          Issue Type: Improvement
          Components: Build
    Affects Versions: 1.6
         Environment: Java Linux
            Reporter: raghutpk

I am using a CombinedConfiguration Object to load a configuration definition file and load
all the configuration sources from it.

I use a config.xml file to load multiple Configuration Sources 

   <properties fileName="" autoSave="true" config-name="properties1"/>
<properties fileName="" autoSave="true" config-name="properties2"/>
<xml fileName="test.xml" autoSave="true" config-name="properties3"/>  </override>


My test.xml(XML Properties File) file looks like this 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "">
  <comment>Description of the property list</comment>
  <entry key="key1">value1</entry>
  <entry key="key2">value2</entry>
  <entry key="key3">value3</entry>


What tag should be used in the configuration definition file so that I can Load the XML Properties
File from a CombinedConfiguration Object. I tried both <xml/> and <properties/>
When I do :

//Intialize the Combined Configuration Object combinedConfig

I am getting a XMLConfiguration Object instead of a XMLPropertiesConfiguration Object . Please

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message