XML
<root>
<dd>11</dd>
<ff>22</ff>
<dd>33</dd>
</root>
Convert to JSON
{"root":{"dd":["11","33"],"ff":"22"}}
Convert to XML again
<root>
<dd>11</dd>
<dd>33</dd>
<ff>22</ff>
</root>
Now, the sequence is changed. What is the solution, if I don't want it change the sequence?
|