Personally, I think that XML is too verbose to transmit data, you can get half the amount of data for the content and half for the structure.
<record>
<name>John</name>
<age>30</age>
</record>
Most of the space is lost in defining the structure; little is left for the data you want (John, 30).
Simple text strings are too limited, at least consider commas separately if you should.
Name;Age
John;30
The first line is for labels only, if you are sure that you will never change it, you can delete it.
Serializing objects can be too dangerous for data transfer, as you can create incompatibilities over time that result in deserialization. For example, just enter or delete a field.
JSON, , XML , . , , , , , , , .
:
{name: John, age: 30 }