(VoiceXML 2.1 feature) Allows the fetching of, and read-only DOM access to, arbitrary XML data, without transitioning to a new VoiceXML document.
Note: The <vxml> version attribute must be specified as 2.1 (or higher) to use this feature. If the version is specified otherwise, <data> will not be recognized and will be treated as an invalid child element.
|
|
Attribute |
Description |
|
name |
The name of the variable that exposes the DOM. For ECMAScript functions to navigate this variable, please see http://www.w3.org/TR/2005/CR-voicexml21-20050613/#sec-data-dom. |
|
src |
The URI of the request, to fetch the XML data. Optional. Exactly one of src or srcexpr must be specified. |
|
srcexpr |
An ECMAScript expression to be evaluated and used as the URI of the request, to fetch the XML data. Optional. Exactly one of src or srcexpr must be specified. |
|
namelist |
A space-separated list of variables to submit with the request. By default, no variables are submitted. Any declared VoiceXML and ECMAScript variables can be referenced. Optional. |
|
method |
The request method: get or post. Optional. (Defaults to get.) |
|
enctype |
The MIME encoding of the submitted data. T he following types are supported:
|
|
fetchaudio |
The URI of the audio to play while waiting for the XML data to be fetched. Optional. Overrides the value of the |
|
fetchhint |
Defines when the XML data should be fetched. Optional.
Overrides the value of the Currently, fetchhint="prefetch" is not supported in the |
|
fetchtimeout |
The length of time to wait for the XML data to be fetched before throwing an Overrides the value of the |
|
maxage |
Indicates that this document is willing to use a cached copy of the XML data only while the age of the cached copy is less than or equal to the number of seconds specified by this attribute. Optional. Overrides the value of the |
|
maxstale |
Indicates that this document is willing to use a cached copy of the XML data that has exceeded its expiration time by as much as the number of seconds specified by this attribute. Optional. Overrides the value of the |
srcexpr cannot be evaluated, an error.semantic event is thrown.Block Catch Catch Error Filled ForEach Form Help If Noinput Nomatch Vxml
None
None
<data> tag does not support fetchhint="prefetch".<data> cannot be used as a child of <foreach> when <foreach> is a child of <prompt> and vxmli.conformance.disallow_exec_content_within_prompts is set to true.namelist of a <data> request with enctype="multipart/form-data", the Content-Type of the submitted audio data in the request is set to the actual MIME type associated with the audio file format of the recording.getAttribute() and getAttributeNS() return an empty string if an attribute doesn't exist.getAttributeNS().hasChildNodes() returns an ECMAScript value true or false.
|
The XML data associated with the example above:
|