Can we create/construct a custom xml packet in android? I need to create an xml packet in the format shown below and send it to the server.
Sending a packet to the server can be done using the DatagramSocket and DatagramPacket according to the links similar to this link. But how do I accomplish the task of creating a custom xml packet? Couldn't find much help in google.
xml format:
<a_list>
<packet_count>12</packet_count>
<info>
<id>12345</id>
</info>
</a_list>