< vxml >
Description
The < vxml > element identifies a VoiceXML document (the xml root element).
Syntax
<vxml version="Version" base="URI" xml:lang="Language" application="URI" />
Attributes
| version | The version attribute specifies the VoiceXML version number. The current version is 2.0. This attribute is required. |
| xmlns | The xmlns attribute is the namespace for VoiceXML, and must be http://www.w3.org/2001.vxml. This attribute is required. |
| base | The base attribute is the base URI of this document. Relative references in this document use this URI as the base URI. This attribute is optional. |
| xml:lang | The xml:lang attribute is the language and locale type for this document. This attribute is optional and defaults to en-US. |
| application | The application attribute is the URI of this document's application root document. If the root document cannot be found or the root document has a reference to another root document, an error.semantic event is thrown. This attribute is optional. |
Parents
None.
Children
<catch>, <error>, <form>, <help>, <link>, <menu>, <meta>, <noinput>, <nomatch>, <property>, <script>, <var>
Extensions
None.
Limitations/Restrictions
None.
Example Code
<?xml version="1.0"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
<form>
<field name="hello">
<grammar>hello | goodbye</grammar>
<help>Just say hello</prompt>
<prompt>Say hello</prompt>
<noinput>Say something</noinput>
<filled>
<prompt>Hello, world!</prompt>
</filled>
</field>
</form>
</vxml>