cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
865
Views
0
Helpful
2
Replies

VXML DTD error

amit.bidkar11
Level 1
Level 1

Hi,

I am getting:

CALL_ERROR; http://HTTP-SERVER/quickstart/

   at line 13: Element <block> is not used according to DTD

My VXML Code:

?xml version="1.0"?>

  <vxml version="2.0">

    <var name="counter" expr="0"/>

    <var name="number" expr="'.'"/>

    <var name="test" expr="1"/>

    <form id="mainform">

        <field name="getdigit" type="digits?length=1">

            <grammar type="application/grammar+regex">[1234567890*]</grammar>

    <block>

            <if cond="test==1">

                <prompt bargein="false">

                    Please enter 10 digits mobile number.

                </prompt>

            </if>

  </block>

            <filled>

                <var name="escape" expr="getdigit"/>

                <if cond="escape=='*'">

                    <goto next="#mainform"/>

                    <else>

                    

                        <var name="number" expr="number + '.' + getdigit"/>

                        <var name="counter" expr="counter+1"/>

      

                        <if cond="counter==10">

                       

                            <var name="result" expr="number"/>

                        </if>

                        <else>

                            <var name="test" expr="0"/>

                            <goto next="#mainform"/>

                        </else>

                    </else>

                </if>            

            </filled>

        </field> 

    </form>

</vxml>  

Plz Help me out......................

2 Replies 2

Raghavendra G V
Cisco Employee
Cisco Employee

Hi Amit,

i think <block> should be used inside <form> element, but looks like you are using inside <filed> element.

Thanks,

Raghavendra

Hi Raghavendra,

Thank You. I resolved the problem.

Thank You,

Amit Bidkar

On Wednesday 04 February 2015 11:01 AM, Raghavendra Gutty Veeranagappa