This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Description
when I convert an xml string to json and convert it back to xml all the child nodes are converted to attributes
initial xml string:
<CBNA_v5> <formhub> <uuid>022b0937ab2c48cea6df4e1db2bb0318</uuid> </formhub> <CommunityBased> <EnteredBy>Bashir Laly</EnteredBy> <EntryDate>2020-01-06</EntryDate> <AssessmentDate>2019-12-15</AssessmentDate> <ADM1Code>AF01</ADM1Code> <ADM2Code>AF0113</ADM2Code> <SettlementCode>AF0113_V_0013</SettlementCode> <SupervisorName>Aziz Rahman</SupervisorName> <Enumerator>Nasrin</Enumerator> <PathType>Asphalt</PathType>
....
convert to json and back to xml:
<CBNA_v5 end="2020-01-06T14:52:35.439+05:30" today="2020-01-06" deviceid="961416219268458"> <formhub uuid="022b0937ab2c48cea6df4e1db2bb0318" /> <CommunityBased EnteredBy="Bashir Laly" EntryDate="2020-01-06" AssessmentDate="2019-12-15" ADM1Code="AF01" ADM2Code="AF0113" SettlementCode="AF0113_V_0013" SupervisorName="Aziz Rahman" Enumerator="Nasrin" PathType="Asphalt" CDCRepName="Aminullah" CDCRepTitle="Village Elder">
.....