XML Comprehensive
Duration
Five days
Description
This course provides the student with in-depth coverage of the Extensible Markup Language. Better known as XML, this language is fast becoming the de facto business language of the Internet. XML allows for powerful and ubiquitous B2B and B2C business solutions to be created, implemented, and maintained. This course explores XML and related technologies, such as Document Type Definitions (DTDs), XML Schema, XML namespace, XSL, XSLT, and XHTML and demonstrates how to incorporate these technologies with Java with SAX and DOM.
This course is an accelerated combination of the Introduction to XML and XML Programming with Java courses.
Audience
This course is designed for those who need to write XML documents and incorporate them into their Java-based applications.
Pre-requisites
An understanding of HTML is helpful, and a working knowledge of Java is also assumed.
Objectives
At the completion of this course, the student will be familiar with the following XML topics:
- Well-formed and valid XML
- Document Type Definitions (DTDs) and Schemas
- XML elements, attributes, entities, and namespaces
- Cascading Style Sheets (CSS)
- Extensible Stylesheet Language Transformations (XSLT)
- Extensible Hypertext Markup Language (XHTML)
- Java SAX/DOM Programming
- Integrating XSLT with Java
- Using XML with wireless Palms
Topics
- What is XML?
- Well-formed XML
- Introducing the Document Type Definition
- XML elements
- XML attributes
- XML entities
- XML namespaces
- XML schemas
- XHTML
- Java & XSLT
- SAX Programming
- DOM Programming
- Working with JAXP
- XML and the Wireless Web
Course Outline
What is XML?
- XML Introduction and overview
- Short history of markup languages
- HTML document anatomy
- XML document anatomy
Well-Formed XML
- What is well-formed XML?
- XML document structure
- Introduction to Cascading Style Sheets (CSS)
Introducing the Document Type Definition
- What is valid XML?
- The document type declaration
- The internal DTD
- The external DTD
- Element structure in the DTD
- The CDATA section
XML Elements
- What is an element?
- Element declarations
- The element content model
- Adding more CSS properties
XML Attributes
- What is an attribute?
- Attribute declarations
- Attribute types
- Attribute defaults
- Enumerated attributes
- Attributes and CSS
- Additional XML declaration attributes
XML Entities
- What is an entity?
- Character references
- Entity declarations
- Parameter entities
- Conditional sections in DTDs
XML Namespaces
- What is an XML namespace?
- The namespace myth
- Defining namespaces in DTDs
- Multiple namespaces
- Attributes and namespaces
XML Schema
- What is XML schema?
- The simple element type
- Complex type elements
- Annotations in schema
- Attributes in schema
- Occurrence constraints
- Content models in schema
- Other XML schema features
XHTML
- What is XHTML?
- HTML and XML
- Conforming HTML
- Well-formed XHTML
- HTML in XHTML
- XML in XHTML
Java and XSLT
- Languages for processing XML documents
- Why Java works well with XML
- Components of an XML application
- XML parsers
- IBM's XML parser
- The Apache XML parser
- Document-oriented vs. Event driven document processing
- Transforming XML documents
- XSL and CSS
- Using XSL sheets to transform an XML document
- Invoking the XSLT component of the parser
- The XSLT classes and interfaces
- Key XSLT methods
- Modifying an XML document into different formats
The Simple API for XML (SAX)
- The types of events generated
- The org.xml.sax and org.xml.sax.helpers packages
- The interfaces and classes in the SAX API
- Key SAX methods
- The IBM SAX parser
- The Oracle SAX parser
- Ordering of events when a document is parsed
- Parsing an XML document using SAX
The Document Object Model
- The Document Object Model (V1.0 and V2.0)
- The org.w3c.dom package
- The DOM interfaces and classes
- Key DOM methods
- IBM's DOM parser
- Oracle's DOM parser
Processing XML Documents Using the DOM
- Reading vs. Parsing an XML document
- Parsing XML documents with the DOM
- Printing from a parsed structure
- Displaying an XML document in a JTree control
- Creating an XML document from scratch
- Adding and deleting nodes from a document
- Manipulating DOM structures
- Searching XML documents
Integrating XML with Databases
- Storing XML documents in a database column
- Creating XML documents from a database table
- Inputting data into tables from XML documents
- The XML schema proposal vs. DTDs
Integrating XML with Servlets
- Brief servlet overview
- Servlets for creating and processing XML documents
- Oracle's XSQL servlet for handling queries
XML and the Wireless Web
- Using XML with wireless Palms