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=31429>.
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=31429

[configuration] Messed file on saving an XMLConfiguration





------- Additional Comments From [EMAIL PROTECTED]  2004-09-28 10:54 -------
The following code:

conf = new XMLConfiguration(new File(testProperties));
conf.addProperty("a.key2", "value2");
conf.save(testSaveConf);

....

conf.setProperty("a.key1", "abcdefgh");
conf.save(testSaveConf); 

with an input file of:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <a>
     
  <key1>value1</key1>
</a>
</configuration>

produces:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <a>
     
  <key2>value2</key2>
<key1>abcdefghabcdefgh</key1>
</a>
</configuration>

I cant figure out why <key1> gets its value inserted twice?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to