Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 17577 invoked from network); 22 Sep 2007 15:05:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2007 15:05:13 -0000 Received: (qmail 46383 invoked by uid 500); 22 Sep 2007 15:05:02 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 46309 invoked by uid 500); 22 Sep 2007 15:05:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 46300 invoked by uid 99); 22 Sep 2007 15:05:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 08:05:02 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 15:05:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 921B2714212 for ; Sat, 22 Sep 2007 08:04:50 -0700 (PDT) Message-ID: <6072254.1190473490574.JavaMail.jira@brutus> Date: Sat, 22 Sep 2007 08:04:50 -0700 (PDT) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CONFIGURATION-296) XMLConfiguration and attributes on the root node MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.