TABLE 2: Standard W3C XML 1.0 Markup
XML Element <element attribute="value"> Syntax Description
<?xml?> <?xml version="version"
[standalone="DocumentTypeDefinitionFlag"]?>
The <?xml?> element is the standard XML declaration that enables XML validation and specifies the XML version that you're using. When you use this element, it must be the first element in the WS file and you can't use blank lines to precede it. When you use the XML declaration, you place the script into a strict XML-compliance mode in which element and attribute names are case sensitive. Always place all source code in a <![CDATA[ ... ]]> section when you use the <?xml?> declaration. Otherwise, the XML parser might interpret parts of your source code as XML markup, which almost always results in syntax errors. The current XML version is XML 1.0. The Document Type Definition (DTD) flag is optional, and you need to set the flag to yes if you include the attribute in the XML declaration.
<![CDATA[...]]> <![CDATA[
.
.
.
]]>
You can use CDATA sections to escape blocks of script containing characters that the parser might interpret as valid XML markup. CDATA sections begin with <![CDATA[ and end with ]]>. You must always enclose your script source code inside a CDATA section when you use the <?xml?> declaration.
<!-- ... -->
or
<comment>
<!-- A comment -->
or
<comment> Another comment </comment>
These comment elements let you insert comments outside of XML markup.
Show: