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

Using JAXB with XML Schemas

XML schema can be used beyond validation. When building XML applications, you can create XML documents from XML schemas using JAXB (Java XML Binding). The following XML schema is designed to specify the configuration document of an application (configure.xsd):

<?xml version=“1.0” encoding=“UTF-8”?>

<xsd:schema targetNamespace=“http://xmlns.xmlbook.com/sample/XSU”

                                   elementFormDefault=“qualified”

                              xmlns:xsd=“http://www.w3.org/2001/XMLSchema”>

     <xsd:element name=“config”>

          <xsd:complexType>

               <xsd:sequence>

                    <xsd:element name=“jdbc”>

                         <xsd:complexType>

                              <xsd:sequence> ...

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