what is a xml file used for
1 XML can keep data separated from your HTML. 2  XML can be used to store data inside HTML documents. 3  XML can be used as a format to exchange information. 4  XML can be used to store data in files or in databases.