Top-level element required in every VoiceXML document.
<vxml
application = "URI"
version = "CDATA"
xml:base = "URI"
xml:lang = "CDATA"
xmlns = "CDATA"
xmlns:xsi = "CDATA"
xsi:schemalocation = "CDATA"
/>
Attribute |
Data Type |
Required? |
Default |
Description |
application |
URI |
no |
NA |
URI of this document's application root document. |
version |
CDATA |
yes |
NA |
VoiceXML version. |
xml:base |
URI |
no |
NA |
Base URI to use when resolving relative URIs in the document. |
xml:lang |
CDATA |
no |
NA |
Language variant of the document. |
xmlns |
CDATA |
no |
NA |
Designated namespace for VoiceXML. |
xmlns:xsi |
CDATA |
no |
NA |
Used with the xsi:schemalocation attribute to indicate the location of the schema for the VoiceXML namespace. |
xsi:schemalocation |
CDATA |
no |
NA |
Used with the xmlns:xsi attribute to indicate the location of the schema for the VoiceXML namespace. |
None.
<catch>, <data>, <error>, <form>, <help>, <link>, <menu>, <meta>, <metadata>, <noinput>, <nomatch>, <property>, <script>, <var>
<?xml version="1.0"?>
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<form>
<block>
Hello World!
</block>
</form>
</vxml>