Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VXML code problem

Status
Not open for further replies.

Costo

Technical User
Nov 8, 2004
5
GB
Hi, I am new to vxml and I am slowly getting there. I have a bit of code that is driving me insane. When I try to validate the code it sais that
"the element type "if" must be terminated by the macthing end-tag.
However I have a </if> tag. Here's the code,any ideas?

Errors Found
Validator found at problem at line 62, column 9:
The element type "if" must be terminated by the matching end-tag "".

1. <?xml version="1.0"?>
2. <vxml version="2.0">
3. <property name="loglevel" value="3"/>
4. <property name="metricslevel" value="2"/>
5. <property name="bargein" value="false"/>
6. <form id="Choices">
7. <field name="choice">
8.
9. <prompt>
10. Please select the Beverage you wish to purchase:
11. To Select Carlsberg, say carlsberg.
12. To Select Heineken, say heineken.
13. To Select Budweiser, say budweiser.
14. </prompt>
15. <grammar>
16.
17. carlsberg | heineken | budweiser
18. </grammar>
19. <filled>
20. <if cond="choice=='carlsberg'">
21.
22. <prompt>
23. You have selected carlsberg.
24. To Proceed to checkout, say checkout.
25. To add to your basket, say add.
26. To remove Carlsberg from your basket, say remove.
27.
28. </prompt>
29. <grammar>
30.
31. checkout | add | remove
32.
33. </grammar>
34. <elseif cond="choice=='heineken'"/>
35.
36. <prompt>
37. You have selected heineken..
38. To Proceed to checkout, say checkout.
39. To add to your basket, say add.
40. To remove heineken from your basket, say remove.
41.
42. </prompt>
43. <grammar>
44.
45. checkout | add | remove
46.
47. </grammar>
48. <elseif cond="choice=='budweiser'"/>
49.
50. <prompt>
51. You have selected budweiser.
52. To Proceed to checkout, say checkout.
53. To add to your basket, say add.
54. To remove budweiser from your basket, say remove.
55.
56. </prompt>
57. <grammar>
58.
59. checkout | add | remove
60.
61. </grammar>
62. </filled>
63. <else/>
64. Lets try again
65. </if>
66.
67. <noinput>
68. I did not hear your response.
69. <reprompt/>
70. </noinput>
71.
72. <nomatch>
73. Sorry but we do not supply the product you requested.
74. <reprompt/>
75. </nomatch>
76.
77.
78.
79. </field>
80. </form>
81. </vxml>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top