< data >

The <data> element allows a VoiceXML application to fetch arbitrary XML data from a document server without transitioning to a new VoiceXML document. The XML data fetched by the <data> element is bound to ECMAScript through the named variable that exposes a read-only subset of the W3C Document Object Model.

Text
srcSpecifies the URI where the external XML content is located.Constraints: Exactly one of the src or srcexpr attributes must be specified.
nameSpecifies the name of the ECMAScript form item variable. Each name assigned to a data element must be unique.
srcexprSpecifies an ECMAScript expression that evaluates to the target URI.Constraints: Exactly one of the src or srcexpr attributes must be specified.
methodSpecifies the HTTP method to use. The allowable values for this attribute are: GET - The GET method is used for the request. POST - The POST method is used for the request. If unspecified, then the GET value is assumed, unless the submission of multi-part or form data is encountered, in which case the POST value is assumed.
namelistSpecifies a space-separated list of variables to submit. By default, no variables are submitted.
fetchaudioSpecifies the URI of the audio file to play to the caller in the event of an extended document fetch. This attribute allows audio to be played to the caller while the fetch is being made, instead of silence.
fetchhintSpecifies when the resource should be fetched during application execution. The following values are permitted: prefetch - Begin the resource fetch upon initial document execution. safe - Only fetch the resource when it is specifically called in the application
fetchtimeoutSpecifies how long, in seconds or milliseconds, the interpreter should wait for the content to be returned before reverting to any backup TTS, if present, or before the application execution skips the contents of the <audio> element, if no backup TTS is present. Valid Values: A character string in CSS2 format.
maxageSpecifies the maximum acceptable age, in seconds, of the resource in question. We do not recommend that you rely on this attribute for cache control; caching is always best controlled by the response headers of the hosting server. If no headers are specified, then no cache control is present, regardless of the value set for the maxage attribute.Valid Values: An ECMAScript Expression that returns a valid time value for the request.
maxstaleSpecifies the maximum acceptable staleness, in seconds, of the resource in question.We do not recommend that you rely on this attribute for cache control; caching is always best controlled by the response headers of the hosting server. If no headers are specified, then no cache control is present, regardless of the value set for the maxstale attribute. Valid Values: An ECMAScript Expression that returns a valid time value for the request.
<block> <catch> <error> <filled> <form> <help> <if> <noinput> <nomatch> <vxml>
None.
None.
None.
text