Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
30598
Description
CharacterData data = document.createTextNode((String) value); seems to be
adding array elements into one string versus multiple elements. The XML
should look like:
<test>
<array>value1</array>
<array>value2</array>
<array>value3</array>
<array>value4</array>
</test>
However, it looks like:
<test>
<array>value1value2value3value4</array>
</test>
The same basic problem occurs with this loop:
// add an array of strings in an attribute
for (int i = 1; i < 5; i++)
However, in this case, instead of add value1, value2, etc:
<test>
<attribute array="value1"/>
<attribute array="value2"/>
<attribute array="value3"/>
<attribute array="value4"/>
</test>
we get just:
<test>
<attribute array="value4"/>
</test>