XML does not replace HTML. XML is designed to describe and carry structured data, focusing on what the data is, whereas HTML is designed to format and display documents, focusing on how information looks. They are complementary technologies with entirely different purposes and applications.