What is for?
It's XML Prolog.
prolog. The minimal prolog contains a declaration that identifies the document
The declaration may also contain additional information:
version: Identifies the version of the XML markup language used in the data. This attribute is not optional.
• encoding: Identifies the character set used to encode the data. ISO-8859-1 is Latin1, theWestern European and English
language character set. (The default is 8-bit Unicode: UTF-8.)
• standalone: Tells whether or not this document references an external entity or an external data type specification. If there
are no external references, then “yes” is appropriate.
It's optional to decalare this, actually, but keep is at least with simpliest way (only version attribute) is strongly recommended.
until page96 of j2ee tutorial
本文介绍了XML文档中的声明部分,包括其目的及组成部分如版本、字符集编码和独立文档声明等。详细解释了这些属性的作用及如何正确使用。
793

被折叠的 条评论
为什么被折叠?



