XML Reading Notes: What's XML

Source: Internet
Author: User
Tags xml parser

1. xml: the more complex the data is, the more complicated the processing is.ProgramThe more complex the XML is, the more useful it can be.

2. XML documents use the XML parser to parse XML. Therefore, in program development, you can use the XML parser to parse XML and take on the application pressure.

3. When modifying the structure of an XML document, you do not need to modify the program, which reduces the extra trouble.

4. XML is a scalable markup language, meaning that anyone can use the tags they want to use to define XML documents.

5. XML vocabulary, including SVG, MathML, and NML. For example, the entire process of NML is Chemical Markup Language, which is used to collect chemistry-related information. For example, MathML is used to collect information related to mathematics, and we can also create words by ourselves.

6.The essential difference between HTML and XML is that HTML is designed for a specific application (Web browser), and XML can be used in any situation we want to use it.

7. The Document Object Model (DOM) is used to display the hierarchical structure of information.

8. element: the most common condition is the area composed of the start tag and the end tag,

9. Element Content and simple content)

The element content is as follows: <Name>

<Frist>Wang</First>

</Name>

As shown above, the entire Red font label becomes the element content, and the light blue font is a simple label.

10. Mixed element: the element contains text or other elements.

11. The beauty of XML is that it can create a document to describe any type of information. It can be understood that the common XML tree is equivalent to creating multiple tables.

For example: <class id = '1' name = "">

<Student ID = "2">

<Name> </Name>

<Age> </age>

<Sex> </sex>

<Phone> </phone>

</Student>

</Class>

Creating the above structure is equivalent to creating three tables, one is a class table and the other is a student table. The other is the CS table, which indicates the class of the student.

Logical Structure of the class table: Class (ID, name)

The logical structure of the student table: Student (ID, name, age, sex, phone)

Logical Structure of the CS table: CS (ID, CID, Sid)

 

The reason for the birth of 12.xhtml is that the XML Parser cannot completely parse HTML. Therefore, the XML Parser can be parsed only when the syntax is more standardized and more rigorous.

13. XML applications: ① reduce server load

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.