Partilhar via


XML Header

  Microsoft Speech Technologies Homepage

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.

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>

See Also

Grammar XML