What are the requirements for a legal VoiceXML document?

Answers to common Plum DEV questions

Moderators: admin, support

  • Author
  • Message


  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

What are the requirements for a legal VoiceXML document?

PostFri Jun 13, 2003 1:54 pm

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">
      Hello, world!

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.

Return to Plum DEV FAQs

Who is online

Users browsing this forum: No registered users and 1 guest