Roundtrip XML->Json->XML
Brought to you by:
aalmiray
I try to restore XML from Json, previously converted from XML. (don't ask why)
XML-in
<table><body><line><ccc/><bbb/><aaa/></line></body></table>
jsonString = {"body": {"line": {
"ccc": [],
"bbb": [],
"aaa": []
}}}
XML-out
<table><body><line><aaa/><bbb/><ccc/></line></body></table>
In the XML-out, the order of the aaa,bbb,ccc-tags is not correct, as the names get sorted on the way (XMLSerializer.java line 942).
For Json or beans, the order may not be important, but it is for XML.