XML is a software and hardware independent tool for carrying information.
XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.
Very nice introduction to XML here