XML Header
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Specifies the XML version number, and optionally the character encodings, as part of a grammar document's XML declaration on the first line of the document. This header must appear on the first line of all XML documents; therefore, all XML Grammar documents (fileName.grxml) must have the XML header at the top.
Syntax
<elementName
xml:lang = (en | en-US) >
</elementName>
Example
The following examples demonstrate XML headers with and without the character encoding declaration.
<!-- With character encoding. -->
<?xml encoding="ISO-8859-1"?>
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" tag-format="semantics-ms/1.0" ...>
...
</grammar>
<!-- Without character encoding. -->
<?xml?>
<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar"
xml:lang="en-US" tag-format="semantics-ms/1.0" ...>
...
</grammar>