We are getting below error when using <data> tag. This is the first time we are trying to use <data> tag with headers.
Code is being run in our Preprod environment.
This document is not valid VoiceXML!
No declaration for attribute accept of element data in Entity, line: 9
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE vxml PUBLIC "-//The Plum Group//DTD VOICEXML 2.1//EN" "/usr/local/plumvp/vxml.dtd">
<vxml version="2.1">
<form>
<block>
<script>
var headers = {"X-Sample-Header-1":"asdf 1234", "X-Sample-Header-2":"fdsa 4321"};
</script>
<data name="test" src="script.php" accept="application/json" headersexpr="JSON.stringify(headers)"/>
</block>
</form>
</vxml>
Regards
Vikas