commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Created: (CONFIGURATION-296) XMLConfiguration and attributes on the root node
Date Sat, 22 Sep 2007 15:04:50 GMT
XMLConfiguration and attributes on the root node
------------------------------------------------

                 Key: CONFIGURATION-296
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-296
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Oliver Heger
            Assignee: Oliver Heger
             Fix For: 1.5


With XMLConfiguration it is not possible to change the value of an attribute of the root element.

New attributes on the root level can be created, e.g.:

XMLConfiguration config = new XMLConfiguration();
config.addProperty("[@test]", "true");

would create a new "test" attribute of the root element. However if this configuration is
saved and loaded again, a

config.setProperty("[@test]", "false");

only temporarily changes the value: getProperty() returns the new value, but when the configuration
is saved, the old value is written.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message