I am new to JAVA and I faced the following problem.
I have a JSON file and the target is to convert to XML. Conversion should be in the following format.
<a attribute1 = "" attribute2 = "" />
but the conversion happened as follows
<a><attribute1>value</attribute1><attribute2>value<attribute2></a>
How exactly can i convert maintaining the desired XML format?