Summary of XML Learning notes (i)

Source: Internet
Author: User

Reprint from the Lonely Wolf the Summary of XML Learning (i)--xml Introduction I. XML concept

Extensible Markup Language, translated over for Extensible Markup Language. XML technology is published by the organization, and it is recommended to follow the XML1.0 specification published by the organization in 2000.

Second, the purpose of learning XML

There is a large number of related data in real life, as shown in Figure 1

  

Figure-1

How can such data be handed over to the computer? , thefundamental goal of the XML language is to describe (Figure 1) the kind of relational data that often occurs in real life .

In the XML language, it allows the user to customize the label. A label is used to describe a piece of data, a label can be divided into start and end tags, between the opening and closing tags, and other tags can be used to describe other data to achieve the description of the data relationship. For example:

1 <?xml version= "1.0" encoding= "UTF-8"?> 2 < China > 3     < beijing > 4         < Haidian ></Haidian > 5         < Fengtai ></Fengtai > 6     </Beijing > 7     < hunan > 8         < changsha ></Changsha > 9         < Yueyang ></Yueyang >10     </Hunan >11     < Hubei >12             < Wuhan ></Wuhan >13             < Jingzhou ></Jingzhou >14     </Hubei >15 < /China >
Iii. Common Applications of XML

XML technology, in addition to preserving relational data, is often used as a software configuration file to describe the relationship between program modules.

In a software system, in order to improve the flexibility of the system, the module it launches is usually determined by its configuration file, such as a software at startup, it needs to start a, b two modules, and a, b two modules at boot, and the need for A1, A2 and B1, B2 module support, in order to accurately describe the relationship, It is most appropriate to use an XML file at this point.

Summary of XML Learning notes (i)

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.