Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 63966 invoked from network); 10 Nov 2010 21:03:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 21:03:11 -0000 Received: (qmail 15590 invoked by uid 500); 10 Nov 2010 21:03:39 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 15544 invoked by uid 500); 10 Nov 2010 21:03:39 -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 15535 invoked by uid 99); 10 Nov 2010 21:03:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:03:39 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 21:03:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAAL3F30027207 for ; Wed, 10 Nov 2010 21:03:15 GMT Message-ID: <12942486.13821289422995105.JavaMail.jira@thor> Date: Wed, 10 Nov 2010 16:03:15 -0500 (EST) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CONFIGURATION-428) The Windows file path cannot be saved correctly as expected in XMLConfiguration In-Reply-To: <28754763.2701289371454297.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930772#action_12930772 ] Oliver Heger commented on CONFIGURATION-428: -------------------------------------------- Thank you for reporting this, it is indeed a bug. The problem is (again) related to the handling of lists, list delimiters, and escaping of list delimiters. As a workaround you can disable parsing of list delimiters (provided that you do not need this feature). Just add the following line to your test class after creating the configuration: {code} config.setDelimiterParsingDisabled(true); {code} I will have to think about a proper fix. > The Windows file path cannot be saved correctly as expected in XMLConfiguration > ------------------------------------------------------------------------------- > > Key: CONFIGURATION-428 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-428 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.6 > Environment: WIN2K3 > Reporter: Terrence Xu > > I want to generate a XML as: > {code:xml} > > > > > > > {code} > Java Code: > {code:title=Test.java|borderStyle=solid} > XMLConfiguration config = new XMLConfiguration(); > config.setRootElementName("Test"); > config.addProperty("Cluster.Server[@location]", "C:\\Server92"); > config.save("C:\\NEW.xml"); > {code} > BUT after running the Java Code, the generated XML looks like: > {code:xml} > > > > > > > {code} > You will find that the location is "C:\ \Server92", BUT what I expected is "C:\Server92". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.