Before simply comparing the differences and connections between HTML and XML (sorting broken memory--xml and HTML), here's a brief summary of it:
As we all know, XML is an Extensible Markup language, so how can it be extensible, and relative to whom, even the presence of XML can help people? Here's the one by one-way.
? What is it
The extensibility of XML is relative to HTML, and its extensibility happens when users can define their own tags, and HTML users must write as required.
The first is the XML file, where the <config>, <db-info>, <driver-name>, <url>, <user-name> and other tags are defined by the user.
in HTML, we have to use tags such as <form>,
<span style= "FONT-FAMILY:FANGSONG_GB2312;FONT-SIZE:18PX;" ><div id= "Examinfo" hidden= "hidden" > <table class= "queryinfotable" style= "margin-left:30px;" ><tr> <td> Academy: <select id= "Combocollege" class= "Easyui-combobox" name= "Combocollege" style= " width:200px "></select></td> <td> courses: <select id=" Combocourse "class=" Easyui-combobox " Name= "Combocourse" style= "width:200px" ></select></td> </tr> <tr> <td > class: <select id= "Comboexam" class= "Easyui-combobox" name= "Comboexam" style= "width:200px" ></select> </td> </tr> </table></div><span style= "font-family:arial, Helvetica, Sans-serif; Background-color:rgb (255, 255, 255); " > </span></span>
? Design tenet:
Can be used to represent data, but not to display data.
? Role:
To implement data transfer or Exchange based on XML files:
For example, when a system that uses two development languages needs to work together on a part of the data, although we can use the database to expose or to generate data in the form of # or ";" separated by a string, etc. to achieve data sharing, taking into account data security and efficiency issues, Programmers need to consider using XML files to implement data transfer and exchange.
? XML technology, in addition to describing relational data, is often used as a software configuration file to describe the relationship between program modules. Such as:
<span style= "FONT-FAMILY:FANGSONG_GB2312;FONT-SIZE:18PX;" >< Tutorials > < name > Operating system Introduction </name > < price >10.0</price > < content > < chapter > This is the first chapter content < section ></section II > < section ></section II > </Chapter I > </content ></Counseling book > </span>
? Summary : in the XML language, it allows the user to customize the label, a label to describe a piece of data, a label is divided into the start tag and the end tag, between the two can use other tags to describe other data, To achieve a description of the data relationship.
XML Learning Summary