Level: Intermediate Martin Brown , Developer and writer, Freelance
06 May 2008 XQuery and VoiceXML are a perfect combination. XQuery provides a very
simple and direct method to generate XML documents from other XML documents.
Because you can pick and choose the different elements that you want from the
source XML file, and format the output file in any way you wish, you can easily
produce a VoiceXML document that contains the exact information you need. In
this tutorial, you see how to employ XQuery with XML documents to build complex
and dynamic systems that take input and information from a VoiceXML environment
and combine them with existing XML documents to produce interactive applications.
In this tutorial
XQuery provides a method to select and process different elements of an XML document
out into a different XML or other structure. One of the main benefits of XQuery over
other formats is that you can contain the processing and XML within the same file. This
can make it easier to process and manage an XQuery document compared to a traditional
XSLT and XML, or language (Perl, Python, Java™ or others) and XML solution. In this tutorial, you will build an application that takes a list of potential
RSS feeds, organized by topic. The application provides the caller with the opportunity to
choose a topic, then a feed within the topic list. The system then reads out the news generated from that feed.
Objectives - Review the basic XQuery - VoiceXML interaction
- Convert data to VoiceXML with XQuery
- Exchange data between XQuery and VoiceXML
- Read the RSS feed contents
Prerequisites
This tutorial is for developers interested in implementing a VoiceXML solution using XQuery. Familiarity with XQuery is helpful but not required. Readers should be familiar with basic XML and RSS concepts.
System requirements
You will need JavaScript enabled in your browser. You will need the following tools to follow this tutorial:
Duration
1 hour
Formats html, pdf
|