Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 63402 invoked from network); 14 Aug 2007 11:49:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 11:49:53 -0000 Received: (qmail 98378 invoked by uid 500); 14 Aug 2007 11:49:50 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 98301 invoked by uid 500); 14 Aug 2007 11:49:50 -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 98292 invoked by uid 99); 14 Aug 2007 11:49:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 04:49:50 -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; Tue, 14 Aug 2007 11:49:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 35F5371418F for ; Tue, 14 Aug 2007 04:49:31 -0700 (PDT) Message-ID: <16945945.1187092171197.JavaMail.jira@brutus> Date: Tue, 14 Aug 2007 04:49:31 -0700 (PDT) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-292) removeChild() doen't trigger auto saving In-Reply-To: <12245707.1186784142964.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519651 ] Oliver Heger commented on CONFIGURATION-292: -------------------------------------------- Can't you achieve the same effects with clearProperty() or clearTree() if the key you specify is specifc enough to select exactly one node? > removeChild() doen't trigger auto saving > ---------------------------------------- > > Key: CONFIGURATION-292 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-292 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.4 > Environment: I am using Nightly build dated July 19, 2007 > Reporter: irina fridkina > Fix For: 2.0 > > > When I remove nodes from the XMLConfiguration with autoSave enabled the file doesn't change. Here is an example > XMLConfiguration config = new XMLConfiguration("c:\\conf.xml"); > config.setAutoSave(true) ; > ConfigurationNode parentNode = config.getRootNode(); > parentNode.removeChild(childName); > config.xml didn't change to reflect the changes -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.