DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32240>. 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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From [EMAIL PROTECTED] 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 <?xml version="1.0" encoding="UTF-8"?> <configuration> <A>valueA<B>NEWvalueA.B<C> <D>valueA.B.C.D</D> </C> </B> </A> <E> <F> <G> <H>valueE.F.G.H</H> </G> </F> </E> <I> <J> <K> <L>valueI.J.K.L</L> </K> </J> </I> </configuration> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]