Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 62133 invoked from network); 15 Dec 2004 08:42:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Dec 2004 08:42:55 -0000 Received: (qmail 66491 invoked by uid 500); 15 Dec 2004 08:42:34 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 66221 invoked by uid 500); 15 Dec 2004 08:42:30 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 66074 invoked by uid 99); 15 Dec 2004 08:42:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Dec 2004 00:42:20 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id iBF8gHtY013645 for ; Wed, 15 Dec 2004 09:42:17 +0100 Received: (from nobody@localhost) by ajax.apache.org (8.12.11/8.12.11/Submit) id iBF8gHpx013643; Wed, 15 Dec 2004 09:42:17 +0100 Date: Wed, 15 Dec 2004 09:42:17 +0100 Message-Id: <200412150842.iBF8gHpx013643@ajax.apache.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 32240] - [configuration] XMLConfiguration.save() does not keep element hierarchy X-Bugzilla-Reason: AssignedTo X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32240 Christian.Kemmer@viadee.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From Christian.Kemmer@viadee.de 2004-12-15 09:42 ------- Hi Oliver, thanks a lot for that remark. The build from commons-configuration-src-20041214.zip has completed without any problems now. And, in advance, saving HierarchicalXMLConfigurations really seems to work now. I have tried the following main method: public static void main(String[] args) { try { HierarchicalXMLConfiguration myHierarchicalXMLConfig = new HierarchicalXMLConfiguration(); myHierarchicalXMLConfig.setProperty("A", "valueA"); myHierarchicalXMLConfig.setProperty("A.B", "valueA.B"); myHierarchicalXMLConfig.setProperty("A.B.C.D", "valueA.B.C.D"); myHierarchicalXMLConfig.setProperty("E.F.G.H", "valueE.F.G.H"); myHierarchicalXMLConfig.setProperty("I.J.K.L", "valueI.J.K.L"); myHierarchicalXMLConfig.setProperty("I.J.K", null); myHierarchicalXMLConfig.setProperty("I.J", null); myHierarchicalXMLConfig.setProperty("I", null); myHierarchicalXMLConfig.setProperty("A.B", "NEWvalueA.B"); myHierarchicalXMLConfig.save("testConfig.xml"); } catch (ConfigurationException e) { System.out.println("ERROR: " + e.toString()); } } which gives me valueANEWvalueA.B valueA.B.C.D valueE.F.G.H valueI.J.K.L This means that a) elements are correctly nested now b) elements without any value are inserted correctly now So, I say a big THANK YOU to you, Oliver, and to all others who helped resolving this issue. I am changing the status of this issue to FIXED and just wait for the next official release to come, including this fix. Best regards, Christian -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org