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" ?>

See Also

Script Component Files and XML Conformance