O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.14. example

Element typeexample
AttributesNone.
Parentsrule
ChildrenPCDATA
DescriptionPart of a grammar; provides an example of input that matches this element's parent rule. The example element serves as a structured comment and can be used to generate documentation or intelligent help messages.

DTD

<!ELEMENT example (#PCDATA) >

Language model

Attributes

None.

Children

PCDATA

The example of a given rule.

Examples

Example 3-16. An example indicating "blue" and "burgundy" as responses
 <?xml version="1.0" encoding="iso-8859-1"?> <vxml version="2.0"> <form> <field name="favColor"> <prompt>What's your favorite color?</prompt> <grammar xml:lang="en-US" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required