Home > Articles > Web Services > XML

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

3.15 exit

Element type

exit

Attributes

expr | namelist

Parents

block | catch | error | filled | help | if | noinput | nomatch

Children

None.

Description

Exits the interpreter session and returns control to the interpreter context.

DTD

<!ELEMENT exit EMPTY >
<!ATTLIST exit
  expr     %expression;  #IMPLIED 
  namelist %field.names; #IMPLIED >

Language model


03mod15.gif


Attributes

expr : expression

The expression evaluated and returned to the interpreter context.

namelist : field.names

A list of variable names (and corresponding values) returned to the interpreter context.

Children

None.

Examples

Example 3-17 Exiting second time an error occurs

<?xml version="1.0" encoding="iso-8859-1"?>
<vxml version="1.0">
  <error count="1">
    <prompt>Here we catch any errors.</prompt>
    <goto next="#badfile"/>
  </error>
  <error count="2">
    <prompt>This time we will exit.</prompt>
    <exit/>
  </error>
  <form id="badfile">
    <block>
      <audio src="badfilename.au"/>
    </block>
  </form>
</vxml>
  • + Share This
  • 🔖 Save To Your Account