Java Programming & XML
Course Description
This course is a comprehensive introduction to XML and XML programming with Java. The class provides a complete overview of XML and messaging model. It then introduces various models to XML programming such as DOM, SAX and transformation through XSLT. All programming models are presented using standard Java API. The course also presents the JAXP framework to XML programming.
Course Duration
3 days
Course Objectives
On completion of this course delegates should:
• understand XML syntax and rules and validation using DTD and XML schemas
• understand namespaces and issues related to namespaces with DTDs and XML schemas
• be able to develop XML applications using various programming models
• appreciate the differences in applying SAX or DOM programming models in XML application and where to use each
• be able to apply the SAX model for parsing XML and how to use readers, content handlers and error handling
• be able to parse and serialize XML documents using the Document Object Model (DOM)
• understand abstracting API using JAXP factory patterns and the different implementation issues with JAXP
• be able to use JDOM for as an alternative API for parsing, building, modifying and writing XML documents
• be able to use XSLT and XPATH for transforming XML documents and how to invoke XSLT from Java code
• recognize the value of other XML related technologies such as web services, UDDI, WSDL, XML-RPC and SOAP
• understand XML syntax and rules and validation using DTD and XML schemas
• understand namespaces and issues related to namespaces with DTDs and XML schemas
• be able to develop XML applications using various programming models
• appreciate the differences in applying SAX or DOM programming models in XML application and where to use each
• be able to apply the SAX model for parsing XML and how to use readers, content handlers and error handling
• be able to parse and serialize XML documents using the Document Object Model (DOM)
• understand abstracting API using JAXP factory patterns and the different implementation issues with JAXP
• be able to use JDOM for as an alternative API for parsing, building, modifying and writing XML documents
• be able to use XSLT and XPATH for transforming XML documents and how to invoke XSLT from Java code
• recognize the value of other XML related technologies such as web services, UDDI, WSDL, XML-RPC and SOAP
Course Content
XML Overview
Introduction to Mark-up languages; content vs. presentation; XML syntax and rules; validating XML documents and DTD XML Namespaces and Schemas; Namespaces; defining namespaces; namespaces and DTD; XML schemas; content types in XML schemas; simple vs. complex types; schemas and namespaces
XML Programming Models and Java
Developing XML; applications; parsing XML; generating XML; transforming XML; parsing XML
SAX – Simple API for XML
The SAX model for parsing XML; SAX readers; content handlers; error handling; other handlers
DOM – The Document Object Model
The DOM model for parsing XML; building the DOM – parsing; outputting the DOM – serialization; working with the DOM
JAXP Model
Abstracting API with JAXP; JAXP 1.0; SAX paring with JAXP; DOM and JAXP; JAXP1.0; JAXP implementations
JDOM
History; JDOM and the other XML API; parsing a document with JDOM; building or modifying a document using JDOM
XPATH
Introduction to XPATH, location paths; full and abbreviated paths; XPATH functions; APIIs for XPATH
XSLT
Transformation and styling; applying a stylesheet; Templates; XSLT elements; control flow; output generation
Applying Transformation to XML with Java
Applying XSLT from aq java program; TrAX API; applying XSLT in a servlet; XSLTC
Other XML Technologies
Web services; UDDI; WSDL; XML-RPC; SOAP
Introduction to Mark-up languages; content vs. presentation; XML syntax and rules; validating XML documents and DTD XML Namespaces and Schemas; Namespaces; defining namespaces; namespaces and DTD; XML schemas; content types in XML schemas; simple vs. complex types; schemas and namespaces
XML Programming Models and Java
Developing XML; applications; parsing XML; generating XML; transforming XML; parsing XML
SAX – Simple API for XML
The SAX model for parsing XML; SAX readers; content handlers; error handling; other handlers
DOM – The Document Object Model
The DOM model for parsing XML; building the DOM – parsing; outputting the DOM – serialization; working with the DOM
JAXP Model
Abstracting API with JAXP; JAXP 1.0; SAX paring with JAXP; DOM and JAXP; JAXP1.0; JAXP implementations
JDOM
History; JDOM and the other XML API; parsing a document with JDOM; building or modifying a document using JDOM
XPATH
Introduction to XPATH, location paths; full and abbreviated paths; XPATH functions; APIIs for XPATH
XSLT
Transformation and styling; applying a stylesheet; Templates; XSLT elements; control flow; output generation
Applying Transformation to XML with Java
Applying XSLT from aq java program; TrAX API; applying XSLT in a servlet; XSLTC
Other XML Technologies
Web services; UDDI; WSDL; XML-RPC; SOAP
Who should attend?
This course is about building systems based on XML language. It benefits programmers who are already familiar with Java language and wish to explore the area of XML programming. It provides insights to designing low coupled systems
through messaging.
through messaging.
Pre-requisites
• Experience of programming in Java.
• Knowledge of 00 programming.
• Knowledge of 00 programming.