Free Sample
+ Collection

Processing XML documents with Oracle JDeveloper 11g

Deepak Vohra

Create, validate, and transform XML documents with Oracle's JDeveloper IDE using this book and eBook
RRP $32.99
RRP $54.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847196668
Paperback384 pages

About This Book

  • Will get the reader developing applications for processing XML in JDeveloper 11g quickly and easily
  • Self-contained chapters provide thorough, comprehensive instructions on how to use JDeveloper to create, validate, parse, transform, and compare XML documents.
  • The only title to cover XML processing in Oracle JDeveloper 11g, this book includes information on the Oracle XDK 11g APIs.
  • Packed with example code and detailed commentary, the book is fully illustrated with functional step-by-step examples.

Who This Book Is For

Employing a comprehensive tutorial-based approach, this easy-to-follow book shows the reader various means of processing XML documents using the power of Oracle's JDeveloper 11g. In next to no time, the reader will be able to create, format, transform, compare, and schema validate XML documents with Oracle's IDE.

Table of Contents

Chapter 1: Creating and Parsing an XML Document
Setting the environment
Generating an XML document
Parsing an XML document with the DOM API
Parsing an XML document with the SAX API
Chapter 2: Creating an XML Schema
An overview of XML Schema
Setting the environment
Creating an XML schema
Registering an XML schema
Creating an XML document from the XML schema
Chapter 3: XML Schema Validation
JDeveloper built-in schema validation
Schema validation in XDK 11g
Setting the environment
Schema validation with XSDValidator
Schema validation with a SAX parser
Schema validation with a DOM parser
Chapter 4: XPath
What is XPath?
XPath support in Oracle XDK 11g
Setting the environment
XPath search
Selecting nodes with XPath API
Chapter 5: Transforming XML with XSLT
What we will cover in this chapter
Setting the environment for XSLT transformation
Transforming an XML document
XSLT extension functions
Chapter 6: JSTL XML Tag Library
Overview of the JSTL XML tag library
Setting the environment
Parsing with the JSTL XML tag library
Transforming with the JSTL XML tag library
Chapter 7: Loading and Saving XML with DOM 3.0 LS
Setting the environment
Loading an XML document
Saving an XML document
Filtering an XML document
Chapter 8: Validating an XML Document with DOM 3 Validation
Setting the environment
Constructing and validating an XML document
Chapter 9: JAXB 2.0
Setting the environment
Compiling an XML schema
Marshalling an XML document
Unmarshalling an XML document
Mapping Java to XML using annotations
Chapter 10: Comparing XML Documents
Setting the environment
Comparing XML documents with the XMLDiff class
Chapter 11: Converting XML to PDF
Setting the environment
Converting XML to XSL-FO
Parsing the XML document
Converting XSL-FO to PDF
Chapter 12: Converting XML to MS Excel
Setting the environment
Converting an XML document to an Excel spreadsheet
Converting an Excel spreadsheet to an XML document
Chapter 13: Storing XML in Oracle Berkeley DB XML
Installing Oracle Berkeley DB XML
Using the command shell
Using the Berkeley DB XML API in JDeveloper
Chapter 14: Oracle XML Publisher
Setting the environment
FO Processor Engine
XSL-FO Utility
PDF Document Merger
Data Engine

What You Will Learn

  • Learn what JDeveloper 11g can do for XML document generation.
  • Rapidly create, format, compare, and schema validate XML documents.
  • Master the built-in XML features in JDeveloper 11g including schema validation, the XSD Visual Editor for creating an XML schema, the XPath Search tool for selecting XML nodes with XPath, and the JAXB compiler for generating JAXB 2.0 Content Model from an XML Schema.
  • See how to work quickly and efficiently with the Oracle XML Developer Kit (XDK 11g)
  • Gain a valuable understanding of JAXP, XPath, XSLT, JAXB 2.0, DOM 3.0, and the JSTL XML Tag Library.
  • Convert XML to Excel and PDF formats, store XML in Oracle Berkeley DB XML, and create Oracle XML Publisher Reports.

In Detail

XML is an open standard for creating markup languages and exchanging structured documents and data over the Internet. JDeveloper 11g presents an effective, quick, and easy-to-use means of processing XML documents.

Inspired by the author's previous XML articles for the Oracle community, this expanded hands-on tutorial guides newcomers and intermediate users through JDeveloper 11g and XML document development. It offers up-to-date information on working with the latest version of JDeveloper, and brand new information on JAXB 2.0 support in JDeveloper 11g. Filled with illustrations, explanatory tables, and comprehensive instructions, this book walks the reader through the wide assortment of JDeveloper's capabilities.

Oracle's JDeveloper 11g is an Integrated Development Environment that provides a visual and declarative approach to application development. Over the course of 14 chapters, readers will get hands-on with JDeveloper as the comprehensive and self-contained tutorials provide clear instruction on the key XML tasks that JDeveloper can accomplish.

Filled with practical information and illustrated examples, this book shows the reader how to create, parse, and store XML documents quickly, as well as providing step-by-step instructions on how to construct an XML schema and use the schema to validate an XML document.

Oracle's XML Developer Kit (XDK) offers a set of components, tools, and utilities for developing XML-based applications, and developers will find the detailed XDK coverage invaluable. Later chapters are given over to using XPath, transforming XML with XSLT, and using the JSTL XML Tag Library.

Moving through the book, a chapter on the JAXB 2.0 API shows you how to bind, marshal and unmarshal XML documents, before we finally delve into comparing XML documents, and converting them into PDF and Excel formats. In all, this book will enable the reader to gain a good and wide-ranging understanding of what JDeveloper has to offer for XML processing.


Read More