The <data> element is a VoiceXML tag that was introduced as part of the VoiceXML 2.1 specification. It is used to query a database through XML and provides a way for a server side script to return a specific data format. The <data> tag performs a GET or POST request to a remote script. That script must then return XML data which allows a coder to use javascript to access the information stored in XML.
The second option, <subdialog> tag, requires a developer to create a minimal amount of VoiceXML that gets returned to house data. The main benefit of the <subdialog> tag is that programmers don’t have to use the “JS DOM” method for accessing the XML data. This method lets a developer control how the variables are returned. Subdialogs are also a mechanism for reusing common dialogs and building libraries of reusable applications.
For more information, please visit Plum’s VoiceXML IVR developer documention at http://www.plumvoice.com/docs/hosting/
Leave a Reply