Anyone know how to convert from json to xml but keeping the data in the same order (without ordering them). I tried Json2xml, dicttoxml and dict2xml but all of them are ordering the data. Please I need help, thank you! For example: from dict2xml import dict2xml
data = {
'b': 1,
'a': 7
}
print (dict2xml(data, wrap="all", indent=" "))
Is giving an output:
<all>
<a>7</a>
<b>1</b>
</all>