| 日历: |
| « | April 2026 | » | | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | |
|
| 本站信息: |
blog名称:好好学习天天向上 日志总数:11 评论数量:10 留言数量:0 访问次数:92591 建立时间:2005年1月21日 |

|
|
大少爷 发表于 2005/1/31 2:52:50 |
|
XML Fundamentals:
Tag Syntax: Start-tags begin with < and end-tags begin with </.
Empty elements: begins with < but ends with />.
XML is case sensitivity.
Root element: It is the first element in the document and the element that contains all other elements.
Mixed Content: contain both character data and child elements.
Attributes: a name-value pair attached to the element's start-tag.Names are separated from values by an equals sign and optional whitespace. Values are enclosed in single or double quotation marks.
XML Names: may contain essentially any alphanumeric character.may also include non-English letters, numbers, and ideograms such as ö, ç, and 串.They may also include these three punctuation characters: the underscore"-", the hyphen"_", the period".".
Entity References: < & > " ' and some other user defined entity references.
CDATA Sections: is set off by a <![CDATA[ and ]]>. Everything between the <![CDATA[ and the ]]> is treated as raw character data.
Comments: begin with <!-- and end with the first occurrence of -->, a three hyphen close like ---> is specifically forbidden.
Processing Instructions: begins with <? and ends with ?>. Immediately following the <? is an XML name called the target.
The XML Declaration: The XML declaration looks like a processing instruction with the name xml and version, standalone, and encoding attributes. example: <?xml version="1.0" encoding="ASCII" standalone="yes"?>
Checking Documents for Well-Formedness: Every start-tag must have a matching end-tag.
Elements may nest, but may not overlap.
There must be exactly one root element.
Attribute values must be quoted.
An element may not have two attributes with the same name.
Comments and processing instructions may not appear inside tags.
No unescaped < or & signs may occur in the character data of an element or attribute.
|
阅读全文(3515) | 回复(0) | 编辑 | 精华 | 分类:软件技术, 电脑与网络 |
|