欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

XML NEWBIE NOTE1 XML 

程序员文章站 2022-07-12 11:07:02
...

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