Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 49204 invoked from network); 13 Apr 2005 06:22:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 06:22:19 -0000 Received: (qmail 76722 invoked by uid 500); 13 Apr 2005 06:22:09 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 76676 invoked by uid 500); 13 Apr 2005 06:22:08 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 76663 invoked by uid 99); 13 Apr 2005 06:22:08 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mailhost.netspeed.com.au (HELO mailhost.netspeed.com.au) (203.31.48.33) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 12 Apr 2005 23:22:07 -0700 Received: from bard.thedistillery.com.au (unverified [203.22.237.146]) by netspeed.com.au (SurgeMail 3.0d) with ESMTP id 31940363 for ; Wed, 13 Apr 2005 16:20:50 +1000 Received: from d613c81s[192.168.1.74] by bard.thedistillery.com.au; Wed, 13 Apr 2005 16:22:01 +1000 Reply-To: From: "Mi Zhang" To: Subject: [Configuration] Date: Wed, 13 Apr 2005 16:13:16 +1000 Organization: The Distillery Message-ID: <002d01c53fef$e22052f0$4a01a8c0@thedistillery.com.au> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01C54043.B3CC62F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Server: High Performance Mail Server - http://surgemail.com X-DNS-Paranoid: DNS lookup didn't match (203.22.237.146)->(standby.fcsonline.com.au)->() X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_002E_01C54043.B3CC62F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, I am using Configuration but having a problem. I used clear to clear configuration in memory, and then loaded the configuration from file again. After re-loading the XML configuration file, the attributes "mod" of the configuration are all gone. What's the problem or how I can keep the attributes. The following are my code and the output: System.out.println("----------- Before reload -------------"); XMLConfiguration configuration = new XMLConfiguration(); configuration.load(_configurationFile); ByteArrayOutputStream os = new ByteArrayOutputStream(); configuration.save(os); System.out.println(os.toString()); configuration.clear(); System.out.println("----------- After reload -------------"); configuration.load(_configurationFile); os = new ByteArrayOutputStream(); configuration.save(os); System.out.println(os.toString()); Ouput of the program: ----------- Before reload ------------- file proxy.thedistillery.com.au 3128 toogletext change this console ----------- After reload ------------- file proxy.thedistillery.com.au 3128 toogletext change this console Thanks, Mi The Distillery Pty Limited ABN 69 080 932 467 PO Box 940, Dickson ACT 2602, AUSTRALIA Phone: +61 2 6272 0200 Fax: +61 2 6262 5151 Web: www.thedistillery.com.au The Distillery Inc 2111 Wilson Blvd, Suite 700, Arlington, Virginia 22201, USA Phone: +1 703 351 5082 Web: www.thedistilleryinc.com The Distillery (Europe) Ltd 53 Chandos Place London WC2N 4HS Tel: +44 (0)20 7812 6692 Fax: +44 (0)20 7812 6677 --------------------------------------------------------------------- The information contained in this email and any files attached may be confidential and/or copyrighted information of The Distillery, Third Parties and/or the intended recipient and may be the subject of legal privilege or public interest immunity. You may only reproduce or distribute the material if you are expressly authorised by us to do so. If you are not the intended recipient, any use, disclosure, copying, circulation, forwarding, printing or publication of this message or attached files is strictly forbidden. If you have received this document in error or are not an intended recipient, please notify the sender and delete from your Inbox and/or system. The Distillery does not represent or warrant that files attached to this e-mail are free from computer viruses or other defects and liability is limited to the resupply (or cost of resupply) of the attached files. --------------------------------------------------------------------- ------=_NextPart_000_002E_01C54043.B3CC62F0--