vxml
vxml element
Represents the root document element of a VoiceXML document.
Syntax
<vxml
application = "URI"
version = "string"
xml:base = "string"
xml:lang = "string"
/>
Attributes
application |
The URI of the application's root document. |
base |
DEPRECATED. Use xml:base instead. |
version |
The version of VoiceXML to which the VoiceXML document conforms. Developers authoring applications to run on the Tellme platform should set this value to 2.1. |
xml:base |
The base URI used to resolve relative references within the document. |
xml:lang |
The language and locale type for this document as defined in RFC 3066. The default value is en-US. |
Parents
None.
Children
catch, data, error, form, help, link, menu, meta, noinput, nomatch, property, script, var
Remarks
The vxml element can contain one or more dialogs. It can also contain data, grammars, links, scripts, and variables declared at document scope.
Examples
When the Tellme VoiceXML interpreter executes the following VoiceXML document it converts the string "Hello World!" to speech, plays that string to the user, and then transitions to the main Tellme service menu.
<?xml version="1.0"?>
<vxml version="2.1"
xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
Hello World!
<exit />
</block>
</form>
</vxml>