| VoiceXML 2.1 Development Guide | Home | Frameset Home |
|
<form> structures within a single page, debugging an application is much easier when you are looking at a document with a single <form> versus one that has thirty of them. Try to break your code up into small, manageable portions to save yourself a lot of headaches.<goto>, <subdialog> or <submit> elements point to an existing page. Also check your 'src' attributes for any <audio>, <grammar>, and <script> elements that you may have to ensure that they are pointing to valid destinations.
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.1">
<meta name="maintainer" content="yourEmail@here.com"/>
<form id="F1">
<block name="B_1a">
<prompt> entering the first block in the first form</prompt>
<log expr="' *** entering B_1a *** '"/>
<goto next="#F2"/>
</block>
</form>
<form id="F2">
<block name="B_1">
<log expr="' *** entering B_1b *** '"/>
<goto next="BrokenPage.vxml"/>
</block>
</form>
</vxml>
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0">
<form id="F1">
<block name="C_1">
<log expr="' *** entering C_1 *** '"/>
<goto next="BogusURL.vxml"/>
</block>
</form>
</vxml>

<meta> tag just below our initial <vxml version="2.1"> declaration will programmatically email you an enormously detailed error log that you can use to determine where your application is failing. Map the below sample snippet, (making sure to specify your own email address), to get a taste:
<vxml version="2.1">
<meta name="maintainer" content="YourEmail@Wherever.com"/>
<form>
<block>
<log expr="Bogusvariable"/>
</block>
</form>
</vxml>
| ANNOTATIONS: EXISTING POSTS |
| login |
|