2. is XML a new concept? No. XML originated from SGML, a markup language scale earlier than HTML. For more information about SGML, you only need to have a general concept. SGML stands for "StandardGeneralizedMarkupLanguage" (general purpose II. XML is a new concept?
No. XML originated from SGML, a markup language scale earlier than HTML.
For more information about SGML, you only need to have a general concept.
SGML stands for 'standard Generalized Markup Language ). The name indicates the scale of the markup language. that is to say, all markup languages are developed according to SGML and include HTML. SGML has a wide coverage. all files with a certain pattern belong to SGML, such as reports and music scores. HTML is the most common pattern of SGML on the network. Therefore, SGML is the 'Mame' of HTML '.
XML is a simplified version of SGML, but it only skips the complicated and uncommon parts. (Oh, see! Is the second 'Mother 'in HTML. no wonder it is more powerful than HTML .), Like SGML, XML can also be used in various fields such as finance and scientific research. here we are talking about the application of XML in web.
Here, you should understand that XML is used to create HTML-like markup language and then display information in this markup language. 3. What are the benefits of applying XML?
With HTML, why do we still need XML?
As the network is becoming more and more widely used, it is no longer necessary to rely solely on a single HTML file type to process ever-changing documents and data, and the syntax of HTML itself is not thorough, seriously affects network information transmission and sharing. (Think about how many designer brain cells are broken by browser-compatible titles .) People have already begun to explore how to meet the various usage needs on the network. The application of SGML is acceptable, but SGML is too ambitious, the programming is complex, so the ultimate choice of the 'slimming 'SGML---XML as the next generation of web application data transmission and interaction tools.
What are the benefits of using XML? Let's look at the clarification of the w3c organization (XML scale setter:
XML makes it easier to apply the SGML language to the network: it simplifies the process of defining file types and simplifies the process of programming and processing SGML files, it simplifies transfer and sharing on the Web.
1. XML can be widely used in any place on the web;
2. XML can meet network utilization needs;
3. the application of XML will make programming simpler;
4. XML is easy to learn and create;
5. the XML code will be clear and easy to browse;
Or abstract. Let's take a look at the strong advantages of XML in subsequent instance tutorials!
4. is XML hard to learn?
If you are interested in learning XML, you may ask: is XML difficult? What is the basis for learning XML?
XML is very simple and easy to learn. If you are familiar with HTML, you will find that the document is very similar to HTML. see the same example document (example 1 ):
? Xml version = '1. 0'?>
XML Quick Start
Ajie
Ajie@aolhoo.com
20010115
First line It is an XML declaration, and the performance document complies with the XML 1.0 specification.
The second line defines the first element in the document, also known as the root element: <myfile>. This is similar to the <HTML> start mark in HTML. Note that this name is customized by yourself.
The following four sub-elements are defined: title, author, email, and date. Differentiate the title, author, email address, and date of the article. Of course, you can define these labels in Chinese, which is easier to understand:
<文章>
<标题> XML easy learning manual
<作者> Ajie
<信箱> Ajie@aolhoo.com
<日期> 20010115
This is the XML document. anyone who is familiar with HTML can directly write such a simple XML document.
In addition, to learn XML, you must also grasp a page scripting language, commonly known as javascript and VB script. Because XML data is called and interacted in HTML using scripts. Let's take a brief example (example 2 ):
1. Save the following code as myfile.htm