What is the goal of XML?

Xml is generally used for API to get data from a website to another website or software.