XML is used for the strategic storage of data that can be read and manipulated later by a computer or a user.
XML also serves as a base or standard for other languages, such as XHTML.
XML is a markup language intended for storing, transmitting and displaying data. Its not a programming language so doesnt do anything on its own.