Chapter 7: Putting It All Together with XML Pipeline, JSPs and XSQL

The examples show how to use Oracle XML Pipeline Processor, JSPs and XSQL servlet.

Example 1: Parsing and Transforming XML using XML Pipeline Processor

1. Go to the $EXAMPLE_HOME/src directory and run the setup_env.bat:

>setenv.bat

2. Go to the $EXAMPLE_HOME/src/pipeline directory and use the pipeline document to parse and transform the book.xml:

java oracle.xml.pipeline.controller.orapipe pipeProcessing.xml

The output include booklist.html and pipe.log.

Back to Top

Example 2: Using DOMBuilder Bean in Java to Parse Multiple XML Asynchronously

1. Set the libraries in the JDeveloper by right click the project name(Chapter7.jpr) and choose the "Project Properties...". Choose the Profiles->Developement->Libraries.

2. Setup a new library include the latest xmlparserv2.jar and xml.jar.

3. Right click on the MultipleParse.java and Run.

Since the parsing is asynchronous. The output is overlapped. The book3.xml will give errors.

Back to Top

Example 3: Creating JSP page using XDK Java Beans [Pending]

 

Back to Top

 


Copyright © 2003