DOM
DOM
Where we're going
Relevant Standards
DOM is easy
Prerequisites
A simple example
Markup and Character Data
Markup and Character Data Example
Entities
Parsed Character Data
CDATA sections
Comments
Processing Instructions
The XML Declaration
Document Type Declaration
Document Type Definition
XML Names
XML Namespaces
Namespace Syntax
Namespace URIs
Binding Prefixes to Namespace URIs
The Default Namespace
How Parsers Handle Namespaces
Canonical XML
Trees
Document Object Model
DOM Evolution
Eight Modules:
Which modules and features are supported?
Which modules are supported?
Which modules are supported? Results
DOM Trees
org.w3c.dom
DOM Parsers for Java
The DOM Process
Parsing documents with a DOM Parser Example
The Node Interface
The NodeList Interface
Node Iterator
Node Reporter
Node Reporter Output
Node Values as returned by getNodeValue()
DOM based TagStripper
Output from a DOM based TagStripper
The Document Node
The Document Interface
Grab HeadLines
Element Nodes
The Element Interface
IDTagger
CharacterData interface
The CharacterData Interface
ROT13 XML Text
Text Nodes
The Text Interface
DocumentType Nodes
The DocumentType Interface
Example of the DocumentType Interface
XHTMLValidator
EntityReference Nodes
The EntityReference Interface
Attr Nodes
The Attr Interface
XLinkSpider with DOM
ProcessingInstruction Nodes
The ProcessingInstruction Interface
XLinkSpider that Respects robots processing instruction
Comment Nodes
The Comment Interface
Comment Example
CommentReader Output
CDATA section Nodes
The CDATASection Interface
Entity Nodes
The Entity Interface
DOMException
Writing XML Documents with DOM
org.apache.xerces.dom.DOMImplementationImpl
A DOM program that writes Fibonacci numbers into an XML document
Serialization
A DOM program that writes Fibonacci numbers onto System.out
fibonacci.xml
OutputFormat
Better formatted output
formatted_fibonacci.xml
DOM based XMLPrettyPrinter
Output from a DOM based XMLPrettyPrinter
The point is this:
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2000
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified September 11, 2000