Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 18796 invoked from network); 10 Nov 2010 06:52:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 06:52:13 -0000 Received: (qmail 73095 invoked by uid 500); 10 Nov 2010 06:52:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 72911 invoked by uid 500); 10 Nov 2010 06:52:44 -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 72903 invoked by uid 99); 10 Nov 2010 06:52:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 06:52:43 +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 06:52:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAA6qM93021162 for ; Wed, 10 Nov 2010 06:52:22 GMT Message-ID: <17093532.3021289371942291.JavaMail.jira@thor> Date: Wed, 10 Nov 2010 01:52:22 -0500 (EST) From: "Terrence Xu (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (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 [ https://issues.apache.org/jira/browse/CONFIGURATION-428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Terrence Xu updated CONFIGURATION-428: -------------------------------------- Description: 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". was: I want to generate a XML as: Java Code: XMLConfiguration config = new XMLConfiguration(); config.setRootElementName("Test"); config.addProperty("Cluster.Server[@location]", "C:\\Server92"); config.save("C:\\NEW.xml"); BUT after running the Java Code, the generated XML looks like: You will find that the location is "C:\\Server92", BUT what I expected is "C:\Server92". > 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.