What is XML and JSON ? Explain them with SOAP and REST.

XML is a markup language and uses tag structure to represents data item. In SOAP we can get respond in XML format.
JSON- It is a lightweight format for storing and transporting data. In REST we can get respond in JSON format.