Oliver Heger created CONFIGURATION-649:
------------------------------------------
Summary: XMLConfiguration changes list format on saving
Key: CONFIGURATION-649
URL: https://issues.apache.org/jira/browse/CONFIGURATION-649
Project: Commons Configuration
Issue Type: Bug
Components: Format
Affects Versions: 2.1
Reporter: Oliver Heger
If the XML document loaded by the configuration contains a string property with
multiple values (separated by the list delimiter character), on saving, this
property is split into multiple nodes. So
{noformat}
<list>a,b,c</list>
{noformat}
becomes
{noformat}
<list>a</list>
<list>b</list>
<list>c</list>
{noformat}
This also happens if the property is not touched before saving. The reason for
this behavior is that on loading new nodes are created for the single list
items (which is required to have an internal model on which queries can be
executed). On saving, these nodes are considered new nodes, and thus new XML
elements are created for them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)