Using XML in Java Applications

XML Training Overview

This course will, through lecture and extensive hands-on workshops, teach you to manipulate XML generally in a data-processing environment, with emphasis on Java as the programming vehicle. Specifically, you will learn to write Java applications that can:

  • Read and parse XML documents
  • Generate XML documents
  • Integrate XML with traditional structured data
  • Perform queries on XML
Note: Although many of the skills learned in this course may apply to applications that present XML on the Web, the clear emphasis here is on handling XML as data rather than on presentation.

XML Training Prerequisites

Introduction to XML, as well as a solid knowledge of Java

XML Training Course duration

2 Days

XML Training Learning Objectives

This course will teach you how to access and process XML documents from a Java application. Specifically, you will learn:

  • How to use Java implementations of the two major parser APIs -- SAX and DOM -- to parse XML documents.
  • How to create Java classes to convert a document into application objects and vice-versa.
  • How to load XML-parsing Java code dynamically with the document.
  • How an XML-capable relational database can integrate XML with traditional structured data.
XML Training Course outline

  • Using XML in Applications: An Overview
    • Why Use XML in Applications?
    • Handling XML
    • Basic XML Activities
    • Reading XML
    • Writing XML
    • Querying XML
  • SAX I: Parsers & Content Handlers
    • What is SAX?
    • How SAX Works
    • The SAX API in Java
    • Using SAX
    • The SAX Handlers
    • Content Handlers
    • Document Events
    • Element Events
    • Attributes
    • Character Data
    • Ignorable Whitespace
    • Processing Instructions
    • XMLReader Interface
    • Getting an XMLReader
    • Using XMLReaderFactory
    • XMLReader Features
    • Registering the Handler
    • Parsing the Document
    • Xerces SAX Parsers
    • Putting It All Together
  • SAX II: Other Functionality
    • EntityResolver
    • DTDHandler
    • Document Locators
    • SAX Error Handling
    • Halting the Parser
    • Trapping Parser Exceptions
  • SAX III: Creating Domain Objects
    • The Mapping Problem
    • Dispatcher/Delegation Handlers
    • A Dispatcher/Delegation Example
  • DOM in Java I: Basics
    • Document Object Model
    • DOM vs. Application Objects
    • DOM vs. SAX
    • Generating a DOM Tree
    • DOM Tree Nodes
    • Types of Nodes
    • Basic Node Attributes
    • Node Parent & Siblings
    • Node Children
    • NodeList
    • Elements
    • Element Children
    • Document
    • Document Children
    • Xerces DOM Parsers
  • DOM in Java II: Additional Features
    • Element Attributes
    • The Attr Interface
    • Getting Attributes
    • Handling Text
    • Character Data
    • Text Nodes
    • Other Character Nodes
    • Processing Instructions
    • DocumentType
    • Entities & Entity References
  • DOM in Java III: Building a DOM Tree
    • Creating a DOM Tree
    • Starting the Tree
    • Creating New Nodes
    • Attaching Nodes
  • Writing XML from Objects
    • The Mapping Issue
Hardware/Software Requirements
  • Hardware Requirements
    • Intel-based PC Workstation
      • Windows 95, 98 or NT
      • Minimum 486 33Mhz Processor
      • Minimum of 32 MB memory
    OR
    • SUN Solaris/SPARC
      • Minimum of 32 MB memory

    • In addition:
      • An Internet connection is highly desirable, at least for the instructor. Certain XML-related Web sites will be discussed during the course; it would help for the students to see them.
  • Software Requirements
    • Java 2 Standard Edition version 1.3 software and documentation*
    • Apaches's Xerces XML parser for Java*
    • Microsoft Internet Explorer 5
    • Adobe Acrobat Reader*
    • Student files
    • Text Editor*

Wintrac Inc.
16523 SW McGwire Ct.
Beaverton OR 97007
© Wintrac, Inc. All rights reserved.                                                                               Site Map   |   Terms of Use   |   Privacy Policy
Copyright © SB