What are the advantages of using XML in data interchanging?

XML file can be used for exchanging data . This is so because in XML file data is stored in form of nodes and sub nodes .Ex Facebook status is stored in one node then there are sub nodes for like, comment and share .