logo

XML Course

course overview

Click to View dates & book now

Overview

In this course, Java programmers will learn the basics of XML form and syntax. They will use Java to implement XML Web applications, as well as learn how to use XML to pass data between distributed Java applications. Emphasis is placed on writing well-formed and valid XML, parsing techniques and converting Legacy data with XML.

Audience

Anyone who needs to program XML in conjunction with Java, including application developers, Web developers, XML document authors, and webmasters.

Skills Gained

  • Creating and Using XML
  • Validating XML with DTDs
  • Validating XML with Schema
  • XSL Translation
  • SAX Parsing
  • DOM Parsing - Processing
  • DOM Parsing - Generating
  • Web Services Introduction
  • SOAP
  • Building XML Applications

Prerequisites

  • Familiarity with Web and data processing concepts.
  • Java programming experience is required.

Duration Three days

Outline

Outline of XML Boot Camp for Programmers Training

1. Creating and Using XML

  • Data and Document Structure
  • What is XML?
  • Why XML?
  • An Example of XML Document
  • Well-formed vs. Valid XML Document
  • Enforcing Validity: DTDs
  • Presentation Style
  • Sections of an XML Document
  • XML Elements
  • Nesting and Hierarchy of XML Elements
  • Tag Attributes
  • Naming Rules
  • Empty and Non-Empty Elements
  • Other XML Tags
  • Entity References
  • Character References
  • Namespaces
  • Processing Instructions

2. Writing DTDs

  • DTD
  • Types of DTDs
  • DOCTYPE
  • Internal DTDs
  • External DTDs
  • Element Qualifiers
  • Validating XML with DTDs
  • Attribute Type Values
  • Parsed General Entities
  • Parsed Parameter Entities

3. Basic XML Schemas

  • What is XML Schema?
  • Goals of Schema
  • Minimal Schema
  • Documents Required
  • Linking Documents to Schema
  • Schema Data Types
  • Simple Types
  • Restrictions in the Elements
  • Using Facet
  • Sequence Element
  • Element Choice
  • Validating XML with Schema
  • Annotations

4. XSL Translation

  • Formatting XML Documents
  • XSL
  • Three Parts of XSL
  • XSLT - XSL Transformation
  • The Music Collection Example
  • Introduction
  • Sample XML file
  • Retrieving Owner Details
  • Retrieving Core Data
  • Retrieving Canadian Content
  • Retrieving Media Data

5. Parsing XML with SAX

  • XML Parser
  • Obtaining a Parser
  • SAX
  • Pros and Cons Using SAX
  • How it Works
  • Core SAX2 Handler Classes
  • XMLReader Interface
  • XMLReader Feature
  • XMLReader Factory
  • Using SAX - Steps
  • Create the Event Handler
  • Create a SAX Parser
  • Register the Event Handler
  • Parse Document
  • SAX Events
  • Simple SAX Application
  • Run the SAX Application
  • startElement() Event
  • Attributes
  • Determine the Number of Attributes
  • Determine Attribute Names
  • Determine Attribute Values
  • Determine Attribute Types
  • Using the Attribute

6. Parsing XML with DOM

  • DOM
  • Limitations of SAX
  • DOM Parser
  • Nodes
  • The Basic Node Types
  • Less Common Node Types
  • DOM Interfaces
  • Our first DOM application

7. Accessing and Generating XML Documents with DOM

  • Accessing DOM object.
    • Using the DOM API to access DOM objects.
    • Traversing a DOM object.
    • Modifying a DOM object.
    • Extract DOM data.
  • XML Generation with DOM.
    • Building a DOM tree.
    • Combining DOM objects.
    • Using DocumentFragment to recognized a DOM tree.
    • Generating XML data a Document object.
  • An Example.
    • Modifying an XML document using DOM.

8. Web Services Introduction

  • Needs for and benefits of Web Services
  • Web Service Description Language (WSDL)
  • RPC (Remote Procedure Call) -based Web Services
  • UDDI (Universal Description, Discovery and Integration)

9. SOAP

  • Needs for and benefits of SOAP
  • SOAP message
  • SOAP over HTTP
  • RPC

10. Building XML Applications

  • Needs for Using XML in Applications
  • Basic Functionality Required for XML Applications
  • Applying XML Across System Boundaries
  • Using XML in Client Side
  • Using XML is Server Side
  • Using XML is Non Networked Systems
  • Using XML is RDBMS
  • The J2EE Blueprint
  • A Typical Architecture of Using XML in J2EE Application
  • Using XML in Applets
  • Using XML Parser in Applets
  • An Example is Using SAX Parser in Applets
  • Using XML is Servlets
  • An Example of Using DOM Parser in a DB Query Servlet
  • Creating XML Middleware for Accessing Databases
  • Transforming RDBMS Data to XML Data
  • Transforming XML Data to RDBMS Data
  • An Example of Using SAX for Loading XML Data to Database

Talk to an expert

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. Its a cost effective option. One on one training can be delivered too, at reasonable rates.

Submit an enquiry from any page on this site and let us know you are interested in the requirements box, or simply mention it when we contact you.

All $ prices are in USD unless it’s a NZ or AU date

SPVC = Self Paced Virtual Class

LVC = Live Virtual Class

Please Note: All courses are availaible as Live Virtual Classes

Trusted by over 1/2 million students in 15 countries

Our clients have included prestigious national organisations such as Oxford University Press, multi-national private corporations such as JP Morgan and HSBC, as well as public sector institutions such as the Department of Defence and the Department of Health.