Click to return to the Content     
A Element     CDF Reference for Active ...    
Web Workshop  |  Content & Component Delivery

?XML


Indicates an Extensible Markup Language (XML) document and specifies the version and character set for the current document.

Syntax

<?XML
    ENCODING="char-set"
    VERSION="n.n"
?>

Attributes

ENCODING
String value specifying the character set used in the document. The default is UTF-8.
VERSION
Number that indicates the major and minor version of XML the file supports. If the value is not specified, the default is 1.0.

Element Information

Number of occurrences One
Parent elements None
Child elements None
File formats supported CDF, OSD
Requires closing tag Yes

Remarks

Include the ?XML element once at the beginning of the XML (CDF or OSD) file.

Example

It's a good idea to specify the character set and version numbers even when default values are assigned, as in the following example.

<?XML ENCODING="UTF-8" VERSION="1.0"?>

See Also

For more information on character encoding and character sets, see CDF Parsing Rules and Hints.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.