XML is a source label language that can be seen as a tool used to generate a lack language. The so-called standard language is like the
of HTML.
From the beginning, we have been talking about how XML "files", but it should be pointed out that the word "file" may be misleading. In addition to the usual files, the XML markup language can be transmitted in accordance with the data stream, database result set, and results dynamically generated by the application. Therefore, what we said is actually a broad file, more accurate call should be a "data object", but for the sake of simplicity, we still call it "file".
In the future, we will also see the skills of XML applications in data.
XML files should be "well-final" (Well-Formed)
Let's take a paragraph XML
[1] Xml version = "1.0" encoding = "gb2312" standalone = "no"?> [2] XML-stylesheet type = "text / xsl" href = "mystyle.xsl"?> [3]
The most basic composition of an XML file is
XML declaration processing indication (optional) XML element
In this example, [1] is an XML declaration, [3] - [17] is the individual elements in the file.
In addition, other logic elements that appear in the above example are:
[1] [2] is the processing instruction [8] is the comment [9] - [14] is CDATA in [5] line "
XML declaration
XML Version = "1.0" Standalone = "no" encoding = "GB2312"?>
Let's take a look at the specific meaning of these properties: