JVXML - XML Programming Using Java
| Categories |
Programming Training, Internet Training, Java Training |
| Duration |
4 days (28 hours) |
| Pre-requisites |
JV1 - Java Programming and basic knowledge of XML, or equivalent experience. Experience in Java Programming, including object-oriented Java and the Java streams model, is essential. XML Schema is used peripherally in the course, and knowledge of this technology will be helpful, but is not required.
|
|
|
|
| Courseware |
JVXML-OBJ-01 (300 pages) |
| Price |
$1580 |
| Notes |
This course is intended for students with a working knowledge of XML, and possibly DTDs or XML Schema, who want to build XML applications or components using the Java language. Everything in the course adheres to W3C and Java standards for completely portable code.
|
This four-day XML Programming Using Java course builds skills in Java’s XML processing APIs, chiefly parsing using SAX and DOM and
transformations using XSLT, all using the Java API for XML Processing, or JAXP. It also covers the newer Java API for XML Binding, or JAXB, which standardizes serialization according to XML Schema. After completing this ourse, students will have been introduced to the use of SAX and DOM APIs for XML parsing; the need for JAXP as an additional layer to the standard contract between applications and parsers; using JAXP to write entirely portable XML parsing code; parsing element and attribute content, processing instructions, and other document information using SAX; parsing documents using the DOM; modifying, creating and deleting information in an XML document using the DOM; using DOM Traversal to simplify and make parsing algorithms more effective; using DOM Mutation Events to track changes to an XML document; using the JAXB to generate persistent Java object models based on XML Schema; implementing XML persistence using the JAXB; writing simple and complex queries into XML document content using XPath; using XSLT for XML-to-XML
transformations; using the built-in template rules correctly to process the right source information; using mode and priority to control template matching; controlling exact production of text, HTML and XML elements, and whitespace; deriving source document content and make copies of node trees; using looping and conditional processing to manage output production and building J2SE and Web applications that leverage XSLT transformation logic.
Module 1 – XML Parsing Using Java
The Java API for XML Processing (JAXP)
Parsing XML
SAX and DOM
What the W3C Says
What the W3C Doesn't Say
Sun and Apache
JAXP
Parser Factories
Pluggable Parsers
Parser Features and Properties
The Simple API for XML (SAX)
Origins of SAX
The SAX Parser
The SAX Event Model
Reading Document Content
Handling Namespaces
SAX Features for Namespaces
Parsing Attributes
Error Handling
DTD Validation
Schema Validation
Handling Processing Instructions
The Document Object Model (DOM)
Origins of the DOM
DOM Levels
DOM2 Structure
The Document Builder
DOM Tree Model
DOM Interfaces
Document, Node and NodeList Interfaces
Element and Text Interfaces
Finding Elements By Name
Walking the Child List
The Attribute Interface
Traversing Associations
The JAXP Transformer Class
Sources and Results
Combining SAX and DOM Processing
Namespaces and the DOM
Manipulating XML Information with the DOM
Modifying Documents
Modifying Elements
Modifying Attributes
Managing Children
Seeking a Document Location
The ProcessingInstruction Interface
Creating New Documents
DOM Level 2 Modules
DOM Traversal
The DocumentTraversal Interface
Node Filters
The NodeIterator Interface
The TreeWalker Interface
DOM Ranges
DOM Events
Mutation Events
Handling Events
Event Flow
Capturing and Bubbling
Cancelable Events
XML Serialization and the Java API for XML Binding (JAXB)
XML for Object Persistence
Persistence Strategies
The Memento Pattern
Deserialization with SAX
Object Persistence with the DOM
Adapting Object Models to the DOM
The Java API for XML Binding
Marshalling, Unmarshalling, and Validation
Schema as Object Models
UML for XML
Mapping XML to Java: Simple Types, Complex Types, and Collections
Object Factories
Customizing JAXB Bindings
The DOM vs. JAXB
JAXB for Persistence
Automatic Translation
Module 2 – XML Transformations Using Java
Using the JAXP for Transformations
XPath, XSLT and Java
The Transformer Class
The TransformerFactory Class
Sources and Results
Identity Transformations
Creating Transformations from Stylesheets
Template Parameters
Output Methods and Properties
XPath
Use of XPath in Other XML Technologies
XPath Expressions
The Axis
The Node Test
The Predicate
XPath Types
XPath Functions
Implied Context
Querying with XPath
XPath and the DOM
Templates and Production
Rule-Based Transformations
Templates and Template Matching
Built-In Template Rules
Recursion Through Templates
Template Context
Output Methods
Controlling Whitespace
Literal Replacement Elements
Formalizing Text, Elements and Attributes
Defining Target Vocabulary
Generating Processing Instructions
XSLT: Dynamic Content and Flow Control
Web Applications Using XSLT
J2EE and JAXP
Deriving Source Content
Getting Source Values
Attribute Value Templates
Copying Source Elements and Trees
Looping
Conditionals
Learning Resources
Quick Reference: W3C Namespaces
UML for XML Schema
Quick Reference: XML and DTD Grammar
Quick Reference: XPath and XSLT