Written in front
The English version of this article published in http://www.w3schools.com/xml/, translated by Blueidea's small hub to Chinese. For XML encoding section, the original text is not suitable for Chinese readers, so some modifications are made. This is a very good entry tutorial for beginners.
If you have any questions, please send a small email: Ordm@163.com.
Download address: http://www.hsyj.pudong-edu.sh.cn/source/000176/0000018284.chm
table of Contents:
XML Basics XML Home XML Getting Started Introduction XML How to Use XML Syntax XML Elements XML Property XML Confirm XML View XML Use CSSXML Using XML Apply XML Advanced Part XML Name Space XML CDATAXML Code XML Server XML App XML HTTPXML Behavior XML Technology Instance / Quiz XML Example XML Quiz Resource XML Book XML Specification
The first chapter of the excerpt:
XML Getting Started Introduction
XML can be used to describe data, the focus is' data.
HTML is used to display data, the focus is 'how to display data'.
The knowledge you should already know before learning XML
You should have some basic knowledge before you continue:
Www, html, and design web page basic knowledge web script language, such as JavaScript or VBScript
You'd better understand the above before learning XML because these knowledge will be used during XML learning.
What is XML?
XML is an extensible Markup Language's abbreviation XML is a markup language XML similar to HTML is used to describe the xml tag of the data is not predefined in XML. You must define your own tag XML Use document type definition (DTD) or Mode (Schema) to describe the language of the data XML using DTD or Schema is the language
What is the main difference between XML and HTML?
XML is used to store data
XML is not an alternative to HTML, XML and HTML are two different languages.
XML is designed to describe data, the focus is: What is data, how to store data. HTML is designed to display data, the focus is: display data and how to display data better.
HTML is related to display information, XML is related to the description information.
XML does not do anything
XML is designed to do anything.
Maybe it seems difficult to understand, but in fact, XML does not do anything. XML is only used to organize, store, and send information.
The following example is the notem of the ORDM to the Lin, use XML format:
Note>
This note has information heads, and the information main body, and also includes senders and recipients. Despite this, this XML document still does not do anything, he is just using the XML to mark the file file. Some people have written out software that sends and receive and display this format information.
XML is free, it can be expanded
XML tags are not pre-stated, you must create your own tag.
You must use the rules in the HTML documentation. For example,:
XML allows you to define your own tag and document structure.
For example, "
XML is not an alternative to HTML.
XML is not an alternative to HTML, which is very important to understand this. In future web development, XML will be used to describe, store data, and HTML is used to format and display data.
The best description for XML may be: XML is a tool cross-platform, unrelated to soft, hardware, processing information.
Application of XML in future Web development
XML is everywhere
XML development is very rapid, which is really surprised, and there are a lot of software developers use XML standards.
We believe that in future web development, XML will pay attention to HTML, and they are the foundation of Web technology. XML will become the most common tools for data manipulation and data transmission.
XML joke
Q: When should I use XML?
A: You can write you XML in your personal resume.