W3C DOM
by
John Punin
Table of contents
W3C Document Object Model (DOM)
The W3C XML DOM Objects
Node-related Objects
XML Document as a Tree of Nodes
Levels of DOM
DOM XML Parsers
Working with DOM
Using Xerces XML Parser
The DOMParser Class
Document Interface Methods
NodeList Interface Methods
Using Xerces XML Parser (2)
Compiling and Running DOMCountNames example
Node Interface Methods
Node Types
Traversing an Entire Document
Traversing an Entire Document (2)
Traversing an Entire Document - Using Recursion (3)
Traversing an Entire Document - Using Recursion (4)
Putting all together
Compiling and Running DOMNameElements example
Working with DOM (Handling Nodes)
Creating DOMParser and Document
Handling Document Node, Element Node and Text Node
Computing grades after tree traversal
Putting all together
Compiling and Running DOMGrades example
Working with DOM (Using Attributes)
Working with DOM (Using Attributes) (2)
Working with DOM (Using Attributes) (3)
Putting all together
Compiling and Running DOMFigures example