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("[EMAIL PROTECTED]", "true");

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

config.setProperty("[EMAIL PROTECTED]", "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.

Reply via email to