JMU
The XML Document Object Model
An Introduction


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Text Documents
Text Documents (cont.)

A Simple (Hierarchical) Model

images/document_abstraction.gif
Modeling Other Documents
The XML Document Object Model (DOM)
The XML Document Object Model (cont.)

A Portion of the DOM 2.0 Core (in UML)

images/dom2_structure.gif
The Node Interface
The Node Interface
The NodeList Interface
The NamedNodeMap Interface
The Attr Interface
The Element Interface
The Document Interface
Other Interfaces