JDOM
Intro to JDOM
What is JDOM?
About JDOM
What's Wrong with DOM?
DOM vs. JDOM
JDOM versions
Four packages:
The org.jdom package
The org.jdom.input package
The org.jdom.output package
The org.jdom.adapters package
Writing XML Documents with JDOM
A JDOM program that writes this XML document
Hello JDOM
Actual Output
Hello DOM
fibonacci.xml
A JDOM program that writes Fibonacci numbers into an XML file
Using Namespaces
Rule for Using Namespaces
With Namespace Prefixes
Parsing Exisitng Documents
JDOM Compatible Parsers for Java
The JDOM Process
Parsing a Document with JDOM
Parser Results
UserLand's RSS based list of Web logs
Goal: Return a list of all the URLs in this list as java.net.URL objects
JDOM Design
Weblogs with JDOM
Weblogs Output
The org.jdom Package
The Document Node
The Document Class
Element Nodes
Element Class Implementation
The Element Class
Element Example: XCount
XCount Output
Handling Attributes in JDOM
The Attribute Class
IDTagger
Before IDTagger
After IDTagger
Handling Namespaces
The Namespace Class
The Namespace Class
What JDOM doesn't do
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2000
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified August 10, 2000