Processing XML documents with Oracle JDeveloper 11g


Processing XML documents with Oracle JDeveloper 11g
eBook: $32.99
Formats: PDF, PacktLib, ePub and Mobi formats
$23.09
save 30%!
Print + free eBook + free PacktLib access to the book: $87.98    Print cover: $54.99
$54.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • 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.

Book Details

Language : English
Paperback : 384 pages [ 235mm x 191mm ]
Release Date : May 2009
ISBN : 1847196667
ISBN 13 : 9781847196668
Author(s) : Deepak Vohra
Topics and Technologies : All Books, Enterprise Products and Platforms, Oracle Fusion Middleware, Enterprise, Java, Oracle


Table of Contents

Preface
Chapter 1: Creating and Parsing an XML Document
Chapter 2: Creating an XML Schema
Chapter 3: XML Schema Validation
Chapter 4: XPath
Chapter 5: Transforming XML with XSLT
Chapter 6: JSTL XML Tag Library
Chapter 7: Loading and Saving XML with DOM 3.0 LS
Chapter 8: Validating an XML Document with DOM 3 Validation
Chapter 9: JAXB 2.0
Chapter 10: Comparing XML Documents
Chapter 11: Converting XML to PDF
Chapter 12: Converting XML to MS Excel
Chapter 13: Storing XML in Oracle Berkeley DB XML
Chapter 14: Oracle XML Publisher
Index
  • Chapter 1: Creating and Parsing an XML Document
    • Setting the environment
    • Generating an XML document
      • Creating the factory
      • Creating the DOM document object
      • Creating the root element
      • Constructing the DOM document
      • Outputting the DOM document
      • Running the Java application
    • Parsing an XML document with the DOM API
      • Creating the factory
      • Creating a DOM document object
      • Outputting the XML document components' values
      • Running the Java application
    • Parsing an XML document with the SAX API
      • Creating the factory
      • Parsing the XML document
      • Running the Java application
    • Summary
  • Chapter 2: Creating an XML Schema
    • An overview of XML Schema
      • Root element
      • Element component
      • SimpleType component
      • ComplexType component
    • Setting the environment
    • Creating an XML schema
    • Registering an XML schema
    • Creating an XML document from the XML schema
    • Summary
  • Chapter 3: XML Schema Validation
    • JDeveloper built-in schema validation
    • Schema validation in XDK 11g
    • Setting the environment
    • Schema validation with XSDValidator
      • Creating a schema validator
      • Setting the error handler
      • Validating the XML document
      • Running the Java application
    • Schema validation with a SAX parser
      • Creating a SAX parser
      • Setting the error handler
      • Validating the XML document
      • Running the Java application
    • Schema validation with a DOM parser
      • Creating a DOM parser
      • Setting the error handler
      • Parsing the XML document
      • Running the Java application
    • Summary
  • Chapter 4: XPath
    • What is XPath?
    • XPath support in Oracle XDK 11g
    • Setting the environment
    • XPath search
      • Selecting nodes with absolute location paths
      • Selecting nodes with relative location paths
      • Selecting namespace nodes
    • Selecting nodes with XPath API
      • Creating the DOM parser
      • Method selectSingleNode(String)
      • Method selectNodes(String)
      • Method selectSingleNode(String,NSResolver)
      • Method selectNodes(String,NSResolver)
      • Running the Java application
    • Summary
  • Chapter 5: Transforming XML with XSLT
    • What we will cover in this chapter
    • Setting the environment for XSLT transformation
    • Transforming an XML document
      • Parsing the XML document
      • Creating the TransformerFactory
      • Creating the Transformer
      • Running the application
    • XSLT extension functions
      • Setting the environment for XSLT extension functions
      • Creating the stylesheet containing the extension functions
        • Instantiating Java classes
        • Parsing the XML
        • Storing Java results in XSLT—non-static method
        • Storing Java results in XSLT—static method
        • Modifying attributes
        • Modifying element text
        • Stylesheet with extension functions
      • Processing the extension functions
    • Summary
  • 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
    • Summary
  • Chapter 7: Loading and Saving XML with DOM 3.0 LS
    • Background
    • The API
    • Setting the environment
    • Loading an XML document
      • Creating the LSParser
      • Adding event handling
      • Parsing the XML document
    • Saving an XML document
      • Creating a document object
      • Creating an LSSerializer
      • Outputting the document object
    • Filtering an XML document
      • Filtering the input
      • Filtering the output
    • Summary
  • Chapter 8: Validating an XML Document with DOM 3 Validation
    • Setting the environment
    • Constructing and validating an XML document
      • Parsing XML document and setting XML schema
      • Global elements
      • The catalog element
      • Adding journal attributes
      • Adding article attributes
      • Adding article subelements
      • Adding a journal element
      • Validating a document
      • Running the DOM 3 Validation application
      • XDK 11g limitations
    • Summary
  • 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
    • Summary
  • Chapter 10: Comparing XML Documents
    • Setting the environment
    • Comparing XML documents with the XMLDiff class
      • Parsing the XML files
      • Comparing the XML files
      • Generating an XSLT stylesheet
      • Running the Java application
    • Summary
  • Chapter 11: Converting XML to PDF
    • Setting the environment
    • Converting XML to XSL-FO
    • Parsing the XML document
      • Generating the XSL-FO document
    • Converting XSL-FO to PDF
      • Creating the FOP driver
      • Generating the PDF document
      • Running the Java application
    • Summary
  • Chapter 12: Converting XML to MS Excel
    • Setting the environment
    • Converting an XML document to an Excel spreadsheet
      • Creating a spreadsheet
      • Parsing the XML document
      • Adding XML data to the spreadsheet
      • Outputting the spreadsheet
      • Running the Java application
    • Converting an Excel spreadsheet to an XML document
      • Creating the XML document
      • Parsing the Excel spreadsheet
      • Constructing the XML DOM tree
      • Running the Java application
    • Summary
  • Chapter 13: Storing XML in Oracle Berkeley DB XML
    • Installing Oracle Berkeley DB XML
    • Using the command shell
      • Adding XML documents
      • Querying XML documents with XQuery
      • Modifying XML documents
      • Replacing/deleting XML document nodes
    • Using the Berkeley DB XML API in JDeveloper
      • Setting the environment
      • Creating a container
      • Adding XML documents
      • Querying XML documents with XQuery
      • Modifying XML documents
      • Updating/renaming in XML documents
    • Summary

Deepak Vohra

Deepak Vohra is a consultant and a principal member of the NuBean.com software company. Deepak is a Sun Certified Java Programmer and Web Component Developer, and has worked in the fields of XML and Java programming and J2EE for over five years. Deepak is the co-author of the Apress book Pro XML Development with Java Technology and was the technical reviewer for the O'Reilly book WebLogic: The Definitive Guide. Deepak was also the technical reviewer for the Course Technology PTR book Ruby Programming for the Absolute Beginner, and the technical editor for the Manning Publications book Prototype and Scriptaculous in Action. Deepak is also the author of the Packt Publishing books JDBC 4.0 and Oracle JDeveloper for J2EE Development; Processing XML documents with Oracle JDeveloper 11g; EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g; and Java 7 JAX-WS Web Services.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 10 Sep 2012

Errata type: Execution problem | Page number: 274

For some readers the data in the catalog.fo could be different, but the document structure will be same as in the book. The following catalog.fo should be generated: Catalog: Oracle Magazine Publisher: Oracle Publishing Edition Title Author September-October 2008 Share 2.0 Alan Joch September-October 2008 Restrictions Apply Alan Joch March-April 2008 Oracle Database 11g Redux Tom Kyte March-April 2008 Declarative Data Filtering Steve Muench

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Processing XML documents with Oracle JDeveloper 11g +    BPEL pour les services web : Deuxième Edition [French] =
50% Off
the second eBook
Price for both: £36.00

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

A practical hands-on guide to processing XML documents in JDeveloper 11g

Approach

This book is for newcomer and intermediate Java developers who want to work with XML documents using JDeveloper 11g. No previous knowledge of JDeveloper is assumed but the reader will need to be comfortable in XML and Java environments.

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software