Last reviewed: 3/23/2024 8:52:17 AM
In this article
<tag>
A <tag> element is an arbitrary string that may be included inline within any legal rule expansion. Any number of tags may be included inline within a rule expansion. The content of tag is CDATA.
Syntax
<tag> </tag>
Attributes
none
Children
none
Parents
Example
The following example illustrates using tag elements.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN" "http://www.w3.org/TR/speech-grammar/grammar.dtd">
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd"
xml:lang="En" version="1.0" mode="voice" >
<rule id="rule1">
this is a <tag>TAG-CONTENT-1</tag> test <tag>TAG-CONTENT-2</tag>
</rule>
</grammar>