You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Deepraj jha (Jira)" <ji...@apache.org> on 2019/11/13 16:29:00 UTC

[jira] [Created] (CONFIGURATION-769) commons configuration addProperty method replaces < > with < >

Deepraj jha created CONFIGURATION-769:
-----------------------------------------

             Summary: commons configuration addProperty method replaces < > with &lt &gt
                 Key: CONFIGURATION-769
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-769
             Project: Commons Configuration
          Issue Type: Bug
          Components: Format
    Affects Versions: 2.6
            Reporter: Deepraj jha


I am using latest Apache commons configuration 2 version 2.6 and when trying to invoke addProperty it replaces < > with &lt &gt.

example :
cfg.addProperty("data.array(0).var(0)",  "<var name=myds1>" );
cfg.write(new FileWriter(this.XmlFile));

Here cfg is XMLConfiguration Object

The resulting xml is :
 {{            <var>&lt;var name=myds1&gt;</var>}}
Expected is :
 {{            "<var name=myds1>"}}
 
 
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)