legacy:vxi_developer_guide:voicexml_references:elements:vxml

< vxml >

The < vxml > element identifies a VoiceXML document (the xml root element).

<vxml
version="Version"
base="URI"
xml:lang="Language"
application="URI" />
versionThe version attribute specifies the VoiceXML version number. The current version is 2.0. This attribute is required.
xmlnsThe xmlns attribute is the namespace for VoiceXML, and must be http://www.w3.org/2001.vxml. This attribute is required.
baseThe 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:langThe xml:lang attribute is the language and locale type for this document. This attribute is optional and defaults to en-US.
applicationThe 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.
None.
<catch>, <error>, <form>, <help>, <link>, <menu>, <meta>, <noinput>, <nomatch>, <property>, <script>, <var>
None.
None.
<?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>
  • legacy/vxi_developer_guide/voicexml_references/elements/vxml.txt
  • Last modified: 2017/07/28 23:53
  • by javier