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