| XML Training   Overview 
 
 
				
This four-day course builds skills in Java's XML processing APIs. The 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.
 The course comprises three modules, which treat XML parsing, XML transformations, and XML binding. The first module introduces the Java API for XML Processing (JAXP) and the two main Java APIs for parsing XML documents: SAX and the DOM. Students learn the basic JAXP architecture and how to create parsers that expose SAX or DOM APIs, and how to configure parsers according to the SAX features and properties specification. SAX parsing gives way to reading and writing document information using the DOM tree model and API.
 
 The second module introduces students to the XPath and XSLT specifications, and how to use JAXP as an interface to XML addressing and transformations. Students learn the JAXP's innovative system of Transformers, Sources, and Results; develop fluency in the exacting but powerful XPath syntax; and then build a number of XSLT transformations.
 
 The third module introduces the newer and more powerful Java API for XML Binding, or JAXB, in its current incarnation, which is version 2.1. JAXB is now emerging as the tool of choice for most XML processing tasks where an XML Schema is available or easy to derive: based on that schema, JAXB-generated types can make it quite easy to read, manipulate, and write XML information models.
 
 XML Training   Learning Objectives
 
XML Training   PrerequisitesUnderstand the use of SAX and DOM APIs for XML parsing.Understand the need for JAXP as an additional layer to the standard contract between applications and parsers.Parse element and attribute content, processing instructions, and other document information using SAX.Parse documents using the DOM.Modify, create and delete information in an XML document using the DOM.Write simple and complex queries into XML document content using XPath.Use XSLT for XML-to-XML, XML-to-HTML, or XML-to-text transformations.Build standalone and web applications that build on XSLT transformation logic.Use JAXB to generate persistent Java object models based on XML Schema.Implement XML persistence using the JAXB. 
 
 XML Training   Course durationExperience in Java Programming, including object-oriented Java and the Java streams model, is essential. “Java Programming,” is excellent preparation.
         Basic understanding of XML is required.“Introduction to XML,” is recommended.
         XML Schema is used peripherally in the course, and knowledge of this technology will be helpful, but is not required.
 
 4 days
 
 XML Training   Course outline
 
 
 Module 1. XML Parsing Using Java
 
 Chapter 1. The Java API for XML Processing (JAXP)
 
				Chapter 2. The Simple API for XML (SAX)Parsing XMLSAX and DOMWhat the W3C SaysWhat the W3C Doesn't SaySun and ApacheJAXPParser FactoriesPluggable ParsersParser Features and Properties 
				Chapter 3. The Document Object Model (DOM)Origins of SAXThe SAX ParserThe SAX Event ModelReading Document ContentHandling NamespacesSAX Features for NamespacesParsing AttributesError HandlingDTD ValidationSchema ValidationHandling Processing Instructions 
				Chapter 4. Manipulating XML Information with the DOMOrigins of the DOMDOM LevelsDOM2 StructureThe Document BuilderDOM Tree ModelDOM InterfacesDocument, Node and NodeList InterfacesElement and Text InterfacesFinding Elements By NameWalking the Child ListThe Attribute InterfaceTraversing AssociationsThe JAXP Transformer ClassSources and ResultsCombining SAX and DOM ProcessingNamespaces and the DOM 
				Module 2. XML Transformations Using JavaModifying DocumentsModifying ElementsModifying AttributesManaging ChildrenSeeking a Document LocationThe ProcessingInstruction InterfaceCreating New Documents 
 Chapter 1. Using the JAXP for Transformations
 
				Chapter 2. XPathXPath, XSLT and JavaThe Transformer ClassThe TransformerFactory ClassSources and ResultsIdentity TransformationsCreating Transformations from StylesheetsTemplate ParametersOutput Methods and PropertiesEvaluating XPath Expressions 
				Chapter 3. Templates and ProductionUse of XPath in Other XML TechnologiesXPath ExpressionsThe AxisThe Node TestThe PredicateXPath TypesXPath FunctionsImplied ContextQuerying with XPathXPath and the DOM 
				Chapter 4. XSLT:  Dynamic Content and Flow ControlRule-Based TransformationsTemplates and Template MatchingBuilt-In Template RulesRecursion Through TemplatesTemplate ContextOutput MethodsControlling WhitespaceLiteral Replacement ElementsFormalizing Text, Elements and AttributesDefining Target VocabularyGenerating Processing Instructions 
				Module 3. The Java API for XML BindingWeb Applications Using XSLTJ2EE and JAXPDeriving Source ContentGetting Source ValuesAttribute Value TemplatesCopying Source Elements and TreesLoopingConditionals 
 Chapter 1. The Java API for XML Binding
 
				Appendix A. Learning ResourcesThe Need for Data BindingXML SchemaTwo PathsJAXB CompilationMapping Schema Types to JavaJava-to-XML Mapping Using AnnotationsMarshaling and UnmarshalingWorking with JAXB Object Models 
 Appendix B. Quick Reference:  W3C Namespaces
 
 Hardware/Software  Requirements
 
						
Hardware – minimal
 500 MHz, 256 meg RAM, 500 meg disk space
 
 Hardware – recommended
 
 1.5 GHz, 512 MB RAM, 1 GB disk.
 
 Operating system
 
 Tested on Windows XP Professional. Course software should be viable on all systems which support a Java 6 Developer's Kit.
 
 Software
 
 All free downloadable tools.
 
 |