With 4 episodes of video, there is some understanding of XML.
XML Example:
<span style= "FONT-FAMILY:KAITI_GB2312;FONT-SIZE:18PX;" ><pre name= "code" class= "HTML" ><?xml version= "1.0" encoding= "utf-8"?>< Books list >< computer books >< Bookname>xml application Daquan </bookname><price>39.0</price></computer Books >< Computer Books ><bookname> JS application Daquan </bookname><price>39.0</price></Computer Books ></Books list ></span>
HTML Example:
<span style= "FONT-FAMILY:KAITI_GB2312;FONT-SIZE:18PX;" >
<span style= "FONT-FAMILY:KAITI_GB2312;FONT-SIZE:18PX;" >
the simple look at the code, the sense that the form of XML and HTML have a little resemblance, are the content tagged with, and the form of the label is very similar to:<> </>. Just contact with XML, thought that XML is a higher version of HTML, but later, through the data to understand the differences.
is what:
What is XML?Refers to Extensible Markup Language (extensible Markup Language);
is a markup language, very similar to HTML;
The purpose of the design is to transmit data;
The label is not predefined;
Have self-descriptive nature;
is the recommended standard.
What is HTML? is a language used to describe a Web page;
refers to Hypertext Markup Language (Hyper Text Markup Language);
is not a programming language, but a markup language (markup Language) Markup language is a set of tag tags (markup tag);
Use tag tags to describe web pages;By definition, you know: XML and HTML are similar, but there are differences:
differences: XML is not an alternative to HTML.
XML and HTML are designed for different purposes:
XML is designed to transmit and store data, with the focus on the content of the data.
HTML is designed to display data with the focus on the appearance of the data.
XML tags are custom-defined, and HTML tags are predefined.
to say more carefully:XML is not performing actions, it is designed to structure, store, and transmit information. More generally, XML is just text, and if you want to show this document, we need to write other programs, such as HTML.
The core function of HTML is to layout and display data. But when you want to display XML data through HTML, you need to parse the XML with JS. This is after the learning content, so the specific content after the launch.
However, we have done a press release system, where the error page is HTML, that is, it can also store data and display, then why do you want to appear XML?
As I said earlier, the advent of XML does not replace HTML, but complements HTML. This is mainly reflected in the display of dynamic Data. If the data is written in HTML, it takes a lot of time to edit the HTML when the data changes. With XML, data can be stored in a separate XML file, so that you can focus on using HTML for layout and display, and ensure that the underlying data is modified without affecting the layout.
The relationship between XML and HTML is also a decoupling idea.
Start to look at XML, do not understand the meaning of its existence, feel what she did, HTML itself can do. But through this contrast, the need for XML is felt, and even the future of XML will be ubiquitous. XML will become the most common tool for data processing and data transmission.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
XML and HTML