Introduction to XML

Source: Internet
Author: User

Introduction to XML

In the previous article, I introduced some understanding of asp.net and HTML, allowing myself to step into the B/S structure. Today I will introduce my understanding of XML, a scalable markup language. As a language, it has its own syntax rules. XML needs to be declared first, and then the definition of our root structure includes root elements, elements, and attributes. The following is an overview of xml knowledge:


Do not go into details about the statement as required. Note the following points for writing the root part:

1. In general, the root element needs to be detached from the most external, and the elements and attributes can be written at will, as long as they meet the well-formed format;

2. Once the order of writing nodes in the root element is specified, the Code must be written in this order; otherwise, an error message will appear;

3. The DTD defines the syntax rules for XML files and then develops into a Schema;

The following is an XML instance with a DTD file attached: (the writing rules of elements are the rules stipulated by the DTD file)


Differences and links between XML and HTML:

Compared with HTML, XML provides more freedom for the encoding staff. It is a supplement and extension to HTML. It is not designed to replace HTML. Their differences are as follows:

 

HTML

XML

Features

International Markup Language

Not only can you select a universal markup language, but it can also be determined by the programmer's freedom

Design start point

Show data

Include and transmit data

The above is what you have learned about XML. The depth and depth of the learning is just a fur. I hope you can give me more advice!

Additional instance


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.