XML Fundamentals
Please turn off all
Outline
Part I: XML Overview
What is XML?
XML is a Meta Markup Language
XML describes structure and semantics, not formatting
A Song Description in HTML
A Song Description in XML
The XML Declaration
Elements
Cascading Style Sheets
CSS Stylesheet for Songs
Attaching style sheets to documents
song.xsl
Applying an XSLT Style Sheet
Output
Editing and Saving XML Documents
Questions?
Well-formedness
Validity
A DTD for Songs
A Valid Song Document
Checking Validity
Questions?
A More Complex Example
Attributes
Empty-element Tags
Comments
Namespaces
Entity References
A More Complex DTD
Questions?
Part II: What is XML Good For?
What is XML used for?
Domain-Specific Markup Languages
Self-Describing Data
An XML Fragment
Interchange of Data Among Applications
Can assemble data from multiple sources
XML Applications
Example XML Applications
Mathematical Markup Language
Channel Definition Format
Classic Literature
Vector Graphics
XML for XML
XSL: The Extensible Stylesheet Language
Schemas
W3C XML Schema Language Example
XLinks
File Formats, in-house applications, and other behind the scenes uses
Questions?
Part III: Processing XML
Several APIs to choose from
SAX
SAX2
The SAX Process
Parsing a Document with XMLReader
The ContentHandler interface
SAX Example
Event Based API Caveats
Document Object Model
The Design of the DOM API
DOM Evolution
Eight Modules:
DOM Trees
org.w3c.dom
The DOM Process
Parsing documents with a DOM Parser Example
DOM Example
JDOM
The JDOM Process
Parsing a Document with JDOM
Parser Results
JDOM Example
XML and Databases
Integrating XML with Databases
Middleware
Database Exchange and Integration
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2002 Elliotte Rusty Harold
Last Modified December 4, 2002