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 < >
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 < >.
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><var name=myds1></var>}}
Expected is :
{{ "<var name=myds1>"}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)