O'Reilly logo

Oracle Database 11g: Building Oracle XML DB Applications by Jinyu Wang

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

Running Oracle XML Java Program

In Oracle JDeveloper 11g, we can build Oracle XML DB applications in SQL, PL/SQL, and Java. In this section, let’s use a Java application as an example.

You can open the 2.XSLT2.0.prj project in this chapter’s examples. A Java program is provided to perform XSL transformation, shown as follows (XSLTTransform.java):

Listing 16-1 XSL Transformation Allowing User Inputs

package xmlbook.chp07;

import java.net.URL;

import oracle.xml.parser.v2.DOMParser;

import oracle.xml.parser.v2.XMLDocument;

import oracle.xml.parser.v2.XSLStylesheet;

import oracle.xml.parser.v2.XSLProcessor;

import oracle.xml.util.XMLUtil;

import java.io.BufferedReader;

import java.io.InputStreamReader;

public class XSLTransform {

     public static ...

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