Working with VoiceXML 2.0 in XMLBlueprint XML Editor
Creating a New VoiceXML Document
To create a new VoiceXML Document:
- Choose File > New > XML Document from DTD or Schema and copy/paste the VoiceXML 2.0 XML Schema (http://www.w3.org/TR/voicexml21/vxml.xsd) into the dialog.
- Press the Next > button, choose "vxml" as root element and press Finish.
That's it, you now have a minimal VoiceXML 2.0 Document.
Instead of the XML Schema, you can also use the DTD (http://www.w3.org/TR/voicexml21/vxml.dtd). XMLBlueprint supports them both.
TIP -- If you work with VoiceXML regurlarly, you may wish to create a template. To do this, create a new Document, choose File > Add to Templates..., name the template "VoiceXML 2.0 Document.xml" and press the Save button. Close "VoiceXML 2.0 Document.xml". To start with the template, choose File > New from Templates and select "VoiceXML 2.0 Document".
Editing a VoiceXML Document
When you open a VoiceXML Document, XMLBlueprint will scan the associated schema to initialize the XML Completion assistant. By pressing <, the assistant displays a list containing all the elements that can be inserted at that point in the document. Press the first few characters of the element you wish to insert and then press ENTER, SPACE, or TAB to insert the selected element in the document. The closing bracket is automatically set, as well as any required attributes or child elements.
Validating a VoiceXML Document
At any time during the editing process, you can click the validate icon or hit F8 to validate your VoiceXML Document. XMLBlueprint reports any errors in the output window below the editor. Clicking the red error message jumps to the error, even if the error is in another file.







