VoiceXML - příklad

<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
 <form id="pizza-mixed">
  <grammar src="pizza.grxml"/>
  <initial name="pizzaall">
   <prompt>Welcome to FI pizzeria</prompt>
   <nomatch count="2"><assign name="pizzaall" expr="true"/></nomatch>
   <noinput count="2"><assign name="pizzaall" expr="true"/></noinput>
  </initial>
  <field name="kind">
   <prompt>What kind of pizza do you want?</prompt>
   <nomatch>We have salami, mozzarela and appolo pizza</nomatch>
   <noinput>We have salami, mozzarela and appolo pizza</noinput>
   <grammar src="pizza.grxml#kind"/>
  </field>
  <field name="topping">
   <prompt>What topping do you want?</prompt>
   <nomatch>We offer ketchup and chilli.</nomatch>
   <noinput>We offer ketchup and chilli.</noinput>
   <grammar src="pizza.grxml#topping"/>
  </field>