In addition to the scalability mentioned in the previous article, XML documents are often seen as the data library and data documentation of documents. HTML, which focuses on display, is almost the same in this respect, resulting in a significant difference between the two. Directory
Development history
Comparison between XML and HTML
Syntax details for comparison between XML and HTML
DTD for XML verification
XML syntax structure
XML namespace
DOM4J read/write configuration file
About SLT
Syntax details for comparison with XML
In addition to the scalability mentioned in the previous article, XML documents are often seen as the data library and data documentation of documents. HTML, which focuses on display, is almost the same in this respect, resulting in a significant difference between the two.
1. XML can only have one root element
There can be multiple root elements in HTML, but only one root element is allowed in XML, that is, HTML can describe a lot of parallel information, while XML can only describe one, however, there is no limit on the number of child elements in the root element. For example, HTML can have many parallel table labels as root elements, but XML can be a unique root element.