Master XML processing in Java: parsing, transformation, mapping, and integration
XML is now considered essential in the design of Java EE architectures. Used as a standard data exchange format, standardized by the W3C, XML is present everywhere in applications and databases and is at the heart of EAI exchanges.
Is it for you ?
Java developers
Prerequisites
Basic knowledge of XML structure and syntax.
Basic knowledge of XPath and XML schemas.
Know how to create and manipulate classes, objects, interfaces, and exceptions. (Object-oriented training, not necessarily Java)
Knowledge of collections (List, Map, Set) and iterators.
Proficiency in input/output (I/O), particularly reading/writing text and binary files.
What You'll Walk Away With
- ✓ Handle and validate XML documents using DTDs, schemas, and structured best practices
- ✓ Implement efficient parsers with SAX, DOM, and StAX based on application needs
- ✓ Transform XML data with XSLT and XPath and generate outputs like HTML or PDF
- ✓ Apply object-XML mapping using JAXB and integrate with data sources
- ✓ Optimize XML data exchanges within information systems considering performance constraints
Training content
1 Positioning XML in Java EE XML architectures
- Standards for manipulating XML documents: XML, XSL, DTD, Schema
- Building a well-formed XML document: syntax rules for writing
- Building a valid document: checking grammar with DTDs or Schema
- Transforming XML documents with XSLT sheets: transformation rules
- Positioning XML in information systems
- XML for standardized data exchange between applications: EAI integration
- XML and publishing data in different formats: HTML, PDF, others
- The issue of mapping relational RDBMS data to XML documents
- The problem of mapping object formats with XML documents
- Performance constraints and best practices for using XML formats in an IS
- JAVA APIs for manipulating XML documents
- XML parsing APIs: SAX, DOM, JDOM
- Java XML parsers: Xerces and Xalan
- XSLT transformation APIs and frameworks: TRAX, COCOON
- OO-XML mapping APIs: JAXB, CASTOR
- XML-RDBMS mapping APIs
2 SAX Parsing of XML Documents
- Introduction to the SAX and JAXP APIs
- The SAX API: the event-driven approach and callback methods
- The main API interfaces: ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- JAXP abstraction layer provided by SUN for accessing the SAX parser
- SAX parsing features
3 Parsing the document with the DefaultHandler helper
- Parsing namespaces and DTD entities
- Validating the document with a DTD or XML schema
- Error handling with the ErrorHandler interface
- Using XMLFilters to modify the SAX event stream
4 Comparison with XML Streaming
- Introduction to SUN's new STAX API
- Introduction to the main Streaming APIs
5 DOM parsing of XML documents
- Presentation of the DOM and JAXP APIs
- Presentation of the DOM API: loading the document into an object tree
- Comparison of DOM and SAX: appropriate use of each API
- Presentation of the main API interfaces: the Node, Document, and Element interfaces
- JAXP abstraction layer provided by SUN for accessing the DOM parser
6 DOM parsing features
- Accessing nodes with tree functions: Node, NodeList, Element, Text, Attr
- Accessing nodes in the document with XPATH expressions
- Creating new nodes and assembling them in the tree with Document
- Event management on a DOM tree: Event and EventListener
- Persistence of changes made to the tree
7 Comparison with other tree and DOM mapping technologies
- Comparison with JDOM: advantages and disadvantages
- Comparison with DOM4J: advantages and disadvantages
- JAXB API: Mapping an XML document to a DOM tree
8 XSLT transformation on an XML document
- Introduction to XSL and the TRAX API
- Reminders about XSL stylesheets and the XPATH language
- Introduction to the TRAX API: encapsulating and organizing access to the XALAN XSLT parser
9 XSLT parser features
- Implementing XSLT transformations with different sources and results: SAX, DOM, Stream
- Implementing XSLT transformations with parameters on the TRAX engine
- Implementing compiled XSLTC sheets
- Integrated grammar validation and error handling
10 Generating PDF documents with XSL-FO
- Introduction to the XSL-FO standard and main tags
- Introduction to the FOP parser and interaction with XSLT parsers
- XSL, XSLT, XSL-FO transformation pipeline
11 Comparison with the COCOON framework
- Introduction to the COCOON framework: automating XSLT transformations
- Implementation of automatic transformation pipelines
📌 Practical information
Our training sessions are offered in Montreal or Quebec City, in person or in a virtual classroom. Dates and locations are specified when you select your session below. If you have any questions, check out our FAQ.