XML easy learning Manual (3) one of XML concepts

Source: Internet
Author: User
Chapter 2 Introduction to XML concepts after quick entry in Chapter 1, you know that XML is a language that allows you to invent your own identity, it can remove data and patterns from webpages. it can store data and share data features so that XML does not have the concept of Chapter 2 XML.

Introduction

After the quick entrance study in Chapter 1, you know that XML is a language that allows you to invent your own logo. it can remove data and patterns from the web page, it can store data and share data features so that XML is omnipotent. If you want to learn XML in depth and grasp the ins and outs of XML, we should first go back to the title of the XML concept. XML (Extensible Markup Language), an extended identity Language. 'Extension' indicates 'linguistic '. Every word understands the important characteristics and functions of XML. Let's analyze it carefully:

1. scalability
II. identification
III. language
4. structured
V. Meta data
6. display
VII. DOM

1. expand --- apply XML. you can think that your document has its own tags ).

The first word in XML is 'extenside', which is precisely the reason for the strong efficacy and elasticity of XML.
There are many fixed tags in HTML. we must remember and apply them. you cannot apply the tags that are not in the HTML specification. In XML, you can create any tag you need. You can make full use of your imagination and give your documents some memorable markup names. For example, if your document contains some game strategies, you can create And then Based on the game type. , . As long as you understand it, it is easy to understand that you can create any number target tag.

At the beginning, you may not be able to adapt, because we can directly learn and apply fixed tags when learning HTML. (many people, including myself, analyze others' codes and identifiers, but XML does not have any markup to learn, and few documents are exactly the same. What should we do? You can create it yourself. Once you really start writing XML documents, it is also interesting to invent new tags that do what you want. You can build tags with your own characteristics, or even your own HTML language.

Scalability gives you more options and strong talent, but it also produces a title that you must learn to plan. You need to understand your documents, what components it consists of, the relationships between them, and how to identify them.

It also needs to be clarified that an identifier is a type or feature that describes data, such , Age, name Such as <10pxl>, <18>, <张三> These are useless tags. If you have learned the database, you can understand that the identification is a field name.

II. identification-you can identify the elements in the document by applying XML.

The second word in XML is 'identified', which indicates that the XML object is an element in the document.

Whether you are HTML or XML, the essence of the logo is easy to understand. if there is no logo, your document seems to be a long string on the computer, and each word looks the same, there are no key points.

By logo, your documents can be easily viewed and understood. you can divide paragraphs and list titles. XML, you can use it to expand to create a more appropriate identifier for the document.

However, there is one thing to note: the identifier is only used to identify information, and it does not convey information. For example, the following HTML code:

Frist step
HereIt is bold and only used to indicate that the 'frist step' character is displayed in bold,It does not contain any actual information, and you cannot see it on the page.The actual information is 'frist step '.

3. language --- use XML to identify your documents according to specific syntax.

The third word of XML is 'language '. This shows that XML must comply with certain rules as a language. Although the expansion of XML allows you to create new identifiers, it must still comply with specific structures, syntaxes, and clear definitions.

In the computer field, the language is often expressed as one? Quot; programming language, used for programming to achieve some functions and use, but not all 'linguistic 'is used for programming, XML is just a language used to define the identification and description information.

Next, let's take a deeper look at the principle of XML exploitation, which may be boring, but it is very important to understand the whole. you can try it again first, there is a vague concept in mind, and the specific essence needs to be understood in practice.

4. structured --- XML promotes Document Structuring. all information is arranged in a certain link.

'Structuring 'sounds too abstract. we understand that structuring is to create a framework for your document, just like writing an outline first. The structure makes your documents look unorganized, and every part is closely linked to form a whole.

There are two principles for structuring:
1. each part (each element) is associated with other elements. The associated series form a structure.
2. the meaning of the logo itself is different from the information it describes.

Let's look at a simple example to help you understand:


XML easy learning manual
XML quick entry
What is XML
Benefits of using XML

XML concept
Scalability
Identifier


This is the XML description document in this article. we can see that there are three levels of association between identifiers, which are very clear:



...



The above document structure is also called the 'document Tree'. The trunk is the parent element, as shown in figure Branch and Page are child elements, such And .


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.