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

What are the requirements for a legal VoiceXML document?

Answers to common Plum DEV questions

Moderators: admin, support

Locked
support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

What are the requirements for a legal VoiceXML document?

Post by support »

A legal VoiceXML document must To be valid, the document must have (at a minimum)
  • - an XML prolog
    - a <vxml> root element (with "version" and "xmlns" attributes)
    - at least one <vxml> child element (e.g. <form>, <menu>)
What follows is (more or less) the shortest VoiceXML document that does anything "interesting":

Code: Select all

<?xml version="1.0" encoding="Latin1"?>
<!DOCTYPE vxml PUBLIC "-//The Plum Group//Voice Markup Language 2.0//EN" "http://vxml.plumgroup.com/vxml-240.dtd">
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
  <form>
    <block>
      Hello, world!
    </block>
  </form>
</vxml>
Note that the PlumVP does not actually require that documents have a DOCTYPE declaration. All documents run under the PlumVP are validated against the platform's DTD regardless of any DOCTYPE declaration your document may (or may not) have.

Locked