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> ...
Get Oracle Database 11g Building Oracle XML DB Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.