We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

DTD error

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
moose155
Posts: 7
Joined: Thu Jun 10, 2010 9:46 am

DTD error

Post by moose155 »

I have been building a scratch pad which was working fine as a relatively small code and now it gives me this error when I validate -
Element vxml content does not follow the DTD, expecting (catch | help | noinput | nomatch | error | data | form | link | menu | meta | metadata | property | script | var)+, got (form form goto form goto form goto form goto form goto form goto form goto form goto form goto form goto form form ) in Entity, line: 714

The complete code is below

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
 <!-- PEO C3T Roll Call -->
 <!-- Paul Collins - Argonavis IT -->
 <!-- July 7, 2010 -->
   <form id="Menu">
      <field name="location">
        <grammar type="application/srgs+xml" root="ROOT" mode="dtmf">
          <rule id="ROOT">
            <one-of>
              <item>0</item>
              <item>1</item>
              <item>2</item>
              <item>3</item>
              <item>4</item>
              <item>5</item>
              <item>6</item>
              <item>7</item>
              <item>8</item>
              <item>9</item>
              <item>10</item>
              <item>11</item>
            </one-of>
          </rule>
        </grammar>
       <prompt bargein="true">
        <voice gender="female" age="35">
       </voice>
        Welcome to the P E O C 3 T roll call.  
        You may enter your location code followed by the pound sign at any time.  
       </prompt>
       <prompt>
        for P E O headquarters, press 1 pound
       </prompt>
       <prompt>
        for Battle Command, press 2 pound
       </prompt>
       <prompt>        
        for F B C B 2, press 3 pound
       </prompt>
       <prompt>
        for Mep, press 4 pound
       </prompt>
       <prompt>
        for sea ram, press 5 pound
       </prompt>
       <prompt>
        for win tee, press 6 pound
      </prompt>
      <prompt>
        for mill tech, press 7 pound
      </prompt>
      <prompt>
        for Cee en eye,  press 8 pound
      </prompt>
      <prompt>
        for jitters, press 9 pound
      </prompt>
      <prompt>
        for spoe nerk, press 1 0 pound
      </prompt>
      <prompt>
        for Fort Hood are em dee, press 1 1 pound
      </prompt>
      <prompt>
       For all other organizations or for mill tech solution support center, press 0 pound
      </prompt>
    <filled>
      <if cond="location==1">
         <goto next="#PEO_HDQTRS"/>
        <elseif cond="location==2"/>
         <goto next="#Battle_Command"/>
      <elseif cond="location==3"/>
         <goto next="#FBCB2"/>
      <elseif cond="location==4"/>
         <goto next="#MEP"/>
       <elseif cond="location==5"/>
         <goto next="#C_RAM"/>
      <elseif cond="location==6"/>
         <goto next="#WIN_T"/>
         <elseif cond="location==7"/>
         <goto next="#MIL_TEC"/>
      <elseif cond="location==8"/>
          <goto next="#CNI"/>
      <elseif cond="location==9"/>
         <goto next="#JTRS"/>
      <elseif cond="location==10"/>
         <goto next="#SPO_NRRC"/>
      <elseif cond="location==11"/>
         <goto next="#FT_HOOD_RMD"/>
      <elseif cond="location==0"/>
         <goto next="#SUPPORT"/>
       <else/>
        <goto next="#SUPPORT"/> 
       </if>
       </filled>
     </field>
</form>
   <form id="PEO_HDQTRS">
      <!-- Call Primary - Marcy Schlanger -->
       <transfer name="outcome" dest="tel=+17324270065" connecttimeout="18s">
         <prompt>
          You are being transferred to P E O Headquarters  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">PEO Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">PEO Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">PEO Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Linda Davis -->
        <transfer name="outcome" dest="tel=+17325320082" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">PEO Alternare was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">PEO Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">PEO Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="Battle_Command">
     <!-- Call Primary Stacey Medway -->
       <transfer name="outcome" dest="tel=+17325324912" connecttimeout="18s">
         <prompt>
          You are being transferred to battle command.  If no one answers you will be transferred to support  
           </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">Battle Command Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">Battle Command Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">Battle Command Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate1 - Janet Rubinaccio -->
        <transfer dest="tel=+17325322579" connecttimeout="18s">
         <prompt>
           Trying first alernate   
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">BC Alternate1 was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">BC Alternate1 was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">BC Alternate1 was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate2 - Al Doty -->
        <transfer dest="tel=+17324273835" connecttimeout="18s">
         <prompt>
           Trying second alernate   
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">BC Alternate2 was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">BC Alternate2 was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">BC Alternate2 was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="FBCB2">
      <!-- Call Primary - Kathy Crifasi -->
       <transfer name="outcome" dest="tel=+17325328599" connecttimeout="18s">
         <prompt>
          You are being transferred to F B C B 2.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">FBCB2 Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">FBCB2 Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">FBCB2 Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Gina Williams -->
        <transfer name="outcome" dest="tel=+14104369612" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">FBCB2 Alternare was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">FBCB2 Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">FBCB2 Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="MEP">
      <!-- Call Primary - Gina Craig -->
       <transfer name="outcome" dest="tel=+17037043173" connecttimeout="18s">
         <prompt>
          You are being transferred to MEP.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">MEP Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">MEP Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">MEP Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Donna Byrd -->
        <transfer name="outcome" dest="tel=+17037044084" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">MEP Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">MEP Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">MEP Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="C_RAM">
       <!-- Call Primary - Shelley Spendley -->
       <transfer name="outcome" dest="tel=+12567746059" connecttimeout="18s">
         <prompt>
          You are being transferred to sea ram.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">C RAM Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">C RAM Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">C RAM Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Tracy Christopher -->
        <transfer name="outcome" dest="tel=+12567746882" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">C RAM Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">C RAM Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">C RAM Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="WIN_T">
      <!-- Call Primary - Toni Sverapa -->
       <transfer name="outcome" dest="tel=+17325328942" connecttimeout="18s">
         <prompt>
          You are being transferred to WIN Tee.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">WIN T Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">WIN TPrimary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">WIN T Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Dottie Kelly -->
        <transfer name="outcome" dest="tel=+1734275662" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">WINT Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">WIN T Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">WIN T Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="MIL_TEC">
      <!-- Call Primary - Valerie A Wheeler -->
       <transfer name="outcome" dest="tel=+17325320254" connecttimeout="18s">
         <prompt>
          You are being transferred to mill tech.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">MILTEC Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">MILTEC Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">MILTEC Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Julie Koehler -->
        <transfer name="outcome" dest="tel=+17324271050" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">MILTEC Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">MILTEC Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">MILTEC Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="CNI">
      <!-- Call Primary - Desiree Romano -->
       <transfer name="outcome" dest="tel=+17325322195" connecttimeout="18s">
         <prompt>
          You are being transferred to sea en eye  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">CNI Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">CNI Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">CNI Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Anne Sullivan -->
        <transfer name="outcome" dest="tel=+17324273489" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">CNI Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">CNI Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">CNI Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="JTRS">
      <!-- Call Primary - Louise Peterson -->
       <transfer name="outcome" dest="tel=+17324273364" connecttimeout="18s">
         <prompt>
          You are being transferred to jitters.  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">JTRS Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">JTRS Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">JTRS Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Kimberly Bailey -->
        <transfer name="outcome" dest="tel=+17325322720" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">JTRS Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">JTRS Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">JTRS Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="SPO_NRRC">
      <!-- Call Primary - Mary Jo Span -->
       <transfer name="outcome" dest="tel=+17325325611" connecttimeout="18s">
         <prompt>
          You are being transferred to spoe nerk  If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">SPO NRRC Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">SPO NRRC Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">SPO NRRC Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Joanne Kascsak-->
        <transfer name="outcome" dest="tel=+17325322125" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">V Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">SPO NRRC Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">SPO NRRC Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
        <goto next="#SUPPORT"/>
   <form id="FT_HOOD_RMD">
      <!-- Call Primary - Elke Johnson -->
       <transfer name="outcome" dest="tel=+12542884035;postd=2130" connecttimeout="18s">
         <prompt>
          You are being transferred to FT HOOD are em dee.   If no one answers you will be transferred to support.   
           </prompt>
      <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">FT HOOD RMD Primary was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">FT HOOD RMD Primary was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">FT HOOD RMD Primary was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
        </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
        <!-- Call Alternate - Ann M Weeks -->
        <transfer name="outcome" dest="tel=+12542884035;postd=2881" connecttimeout="18s">
          <prompt>
            Trying the alternate phone number
          </prompt>
         <filled>
           <if cond="outcome == 'busy'">
               <log label="mylog">FT HOOD RMD Alternate was busy</log>
               <prompt>
                 line is busy.
               </prompt>
            <elseif cond="outcome == 'noanswer'"/>
               <log label="mylog">FT HOOD RMD Alternate was no answer</log>
               <prompt>
               No answer
               </prompt>
            <else/>
               <log label="mylog">FT HOOD RMD Alternate was successful (voicemail/humanpickup)</log>
                <throw event="connection.disconnect.hangup"/>
            </if>
          </filled>
         </transfer>
          <catch event="connection.disconnect.hangup">
           <goto nextitem="duration"/>
          </catch>
      </form>
    <form id="SUPPORT">
       <transfer name="outcome" dest="tel=+17324273463" >
          <prompt>
          Transferring to Mill Tech Solutions Support Center   
           </prompt>
         </transfer>
    </form>
</vxml>


moose155
Posts: 7
Joined: Thu Jun 10, 2010 9:46 am

Re: DTD error

Post by moose155 »

Found the problem. The goto statements needed to be inside the other forms.

Post Reply