Page 1 of 1

What are the requirements for a legal VoiceXML document?

Posted: Fri Jun 13, 2003 1:54 pm
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" "">
<vxml version="2.0" xmlns="">
      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.