Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 54479 invoked from network); 23 Mar 2008 18:43:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Mar 2008 18:43:29 -0000 Received: (qmail 22326 invoked by uid 500); 23 Mar 2008 18:43:27 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 22269 invoked by uid 500); 23 Mar 2008 18:43:27 -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 22260 invoked by uid 99); 23 Mar 2008 18:43:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 11:43:27 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 18:42:45 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66D93234C0A2 for ; Sun, 23 Mar 2008 11:41:25 -0700 (PDT) Message-ID: <679613785.1206297685420.JavaMail.jira@brutus> Date: Sun, 23 Mar 2008 11:41:25 -0700 (PDT) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (CONFIGURATION-316) Constructor XMLConfiguration(HierarchicalConfiguration) invalidates text in singular top element In-Reply-To: <1029016083.1205329246374.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-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger updated CONFIGURATION-316: --------------------------------------- Affects Version/s: (was: 1.6) 1.5 Fix Version/s: 1.6 Assignee: Oliver Heger > Constructor XMLConfiguration(HierarchicalConfiguration) invalidates text in singular top element > ------------------------------------------------------------------------------------------------ > > Key: CONFIGURATION-316 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-316 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.5 > Environment: Sun JDK 6 on Debian GNU/Linux > Reporter: Daniel Kraft > Assignee: Oliver Heger > Priority: Minor > Fix For: 1.6 > > Attachments: output.txt, Test.java > > > When using the XMLConfiguration(HierarchicalConfiguration) constructor for copying an XMLConfiguration e.g. originally read from the XML string example, the "example" text can still be retrieved from the copy using getString(""). When saving the copy to an XML file, however, the text is not written; the resulting XML string is just . I will attach sample code that illustrates this. > Whether it is intended that the name of the top-level element gets lost as well, I don't know (but that is not my focus here). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.