title: make voiceXML to read the result returned by the server
body: <p>I am new in voiceXML and I am wondering how to read a value return by the server after post. I want voiceXML to read the server's response. <a href="http://help.voxeo.com/go/help/xml.vxml.elements.submit" rel="noreferrer">According to voiceXML documentation</a>, I understand that the result should be in XML.  </p>
  
  <p>Here is my node.js/express.js code that receives the result:</p>
  
  <pre><code>app.post("/getData", function (req, res) {
      console.log(JSON.stringify(req.body));
      res.header('Content-Type','text/xml').send('&lt;?xml version="1.0" ?&gt; &lt;vxml version="2.0"&gt; &lt;block&gt; &lt;prompt&gt; The time in Milwaukee is 10 &lt;/prompt&gt; &lt;/block&gt; &lt;/vxml&gt;');
  });
  </code></pre>
  
  <p>Here is the screenshot showing that I am successfully receiving the posted content:</p>
  
  <p><a href="https://i.stack.imgur.com/VpUD4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VpUD4.png" alt="enter image description here"></a></p>
  
  <p>Here is the screenshot showing that I am successfully sending the XML result:
  <a href="https://i.stack.imgur.com/txLSN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/txLSN.png" alt="enter image description here"></a></p>
  
  <p>Here is my voiceXML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE vxml PUBLIC "-//BeVocal Inc//VoiceXML 2.0//EN" "http://cafe.bevocal.com/libraries/dtd/vxml2-0-bevocal.dtd"&gt;
  &lt;vxml xmlns="http://www.w3.org/2001/vxml" xmlns:bevocal="http://www.bevocal.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"&gt;
      &lt;form scope="dialog"&gt;
          &lt;field name="name" modal="false"&gt;
              &lt;grammar src="grammars.grammar#Names"/&gt;
              &lt;prompt&gt;Whats your name?&lt;/prompt&gt;
              &lt;filled&gt;
                  &lt;prompt&gt;Hello &lt;value expr="name"/&gt;
                  &lt;/prompt&gt;
              &lt;/filled&gt;
          &lt;/field&gt;
  
          &lt;field name="city" modal="false"&gt;
              &lt;grammar src="grammars.grammar#Cities"/&gt;
              &lt;prompt&gt;What city are you from?&lt;/prompt&gt;
              &lt;filled&gt;
                  &lt;prompt&gt;You are from &lt;value expr="city"/&gt;
                  &lt;/prompt&gt;
              &lt;/filled&gt;
          &lt;/field&gt;
  
          &lt;field name="country" modal="false"&gt;
              &lt;grammar src="grammars.grammar#Countries"/&gt;
              &lt;prompt&gt;What country are you from?&lt;/prompt&gt;
              &lt;filled&gt;
                  &lt;prompt&gt;You are from &lt;value expr="country"/&gt;
                  &lt;/prompt&gt;
              &lt;/filled&gt;
          &lt;/field&gt;
  
          &lt;field name="cityTime"&gt;
              &lt;prompt&gt;
                  What city would you like the time for?
              &lt;/prompt&gt;
              &lt;grammar type="application/x-nuance-gsl"&gt;
                  [denver (san francisco) ]
              &lt;/grammar&gt;
          &lt;/field&gt;
          &lt;field name="formatTime"&gt;
              &lt;prompt&gt;
                  Twelve hour or twenty four hour clock?
              &lt;/prompt&gt;
              &lt;grammar type="application/x-nuance-gsl"&gt;
                  [[twelve (twenty four)] ?hour]
              &lt;/grammar&gt;
          &lt;/field&gt;
          &lt;block&gt;
              &lt;submit next="http://65.29.170.122/getData" method="post" namelist="name city country cityTime formatTime" /&gt;
          &lt;/block&gt;
      &lt;/form&gt;
  &lt;/vxml&gt;
  </code></pre>