Widnow 脚本组件


    指示这个文件将被解析成XML
    <?XML version="version" standalone="DTDflag" encoding="encname" ?>
Values
    version
        字符串中的n.n指出这个文件的XML版本。请使用1.0。
    DTDflag
        (可选)这个布尔值指出XML文件是否包含一个外部文档类型说明(DTD),脚本组 件XML文件不包含这样一个引用,所以这个属性的值总是“yes”。
    encname
        (可选)XML文档使用一个描述字符集编码的字符串。这个字符串可以包含 Microsoft Internet Explorer所支持的任意字符集。
Remarks
    这个描述必须是文件中的第一个元素。
    这个描述把脚本把脚本组件编辑器设置成严格的XML模式,元素类型和属性名区分大小      写,属性值必须在单引号或双引号中,并且所有元素被解析。如果这个描述不被包含,    编辑器将允许任何语法。
    一般而言,如果你的脚本组件文件常被XML标准的编辑器编辑,你应该包含这个描述并遵守XML约定。
Example
    <?XML version="1.0" standalone="yes" encoding="UTF-16" ?>

   

原文

 

 Windows Script Components 

<?XML ?>

Indicates that the file should be parsed as XML.

<?XML version="version" standalone="DTDflag" encoding="encname" ?>
Values
version
A string in the form n.n specifying the XML level of the file. Use the value 1.0.
DTDflag
(Optional) A Boolean value indicating whether the XML file includes a reference to an external Document Type Definition (DTD). Script component XML files do not include such a reference, so the value for this attribute is always "yes."
encname
(Optional) A string that describes the character set encoding used by the XML document. The string may include any of the character sets supported by Microsoft® Internet Explorer.
Remarks

This declaration must be the first element (including white space) in the file.

The existence of this declaration puts the script component compiler into strict XML mode where element types and attribute names are case-sensitive, attribute values must be in single or double quotes, and all elements are parsed. If the declaration is not included, the compiler allows looser syntax.

In general, you should include this declaration and follow XML conventions if your script component file will ever be edited in an XML-conformant editor.

Example
<?XML version="1.0" standalone="yes" encoding="UTF-16" ?>


    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值