No XML does not replace HTML. Instead, it gives an alternative which permits you to explain your own set of markup elements. HTML is expected to stay in common use for some time to come, and the present version of HTML is in XML syntax. XML is designed to make the writing of DTDs much easier than with full SGML.