Xml:extensible Markup Language (Extensible Markup Language) Html:hypertext Markup Language (Hypertext Markup Language) both were developed by the World Wide Web Consortium, HTML focuses on how to display data on a Web page, and XML focuses on the transmission and storage of data, both of which are an integral part of the web domain; Relative to Html,xml has its own strict syntax specifications, strictly case-sensitive, and support developers to customize the label, and can be linked to the DTD file or schema file to customize its syntax format, is easy to watch, and facilitates the same or different languages written by the data transfer between programs. The structure of XML is simple, a root element, a number of child elements, each element can define its corresponding attributes, the XML document supports comments, the annotation format is the same as the HTML, in order to avoid the special characters are wrong parsing, the XML specifies a CDATA area to describe the text that you do not want to parse, in the format <! [cdata[]]>, like HTML, XML uses & As an escape character, such as:& = = ' & ' < = = ' < ' > = = ' > ' " = = ' &ap the os; = = ' XML associates a constrained DTD file with a fixed-format statement <! DOCTYPE Document root node SYSTEM "DTD file URL" > local file <! DOCTYPE Document root node Public "DTD name" "DTD file URL" > common file
The difference between XML and HTML and the relation of "one"