The Document Object Model

The org.w3c.dom package consists entirely of interfaces. We neither know nor care what concrete classes implement them.

The most important interface is Node:
Node
+ getAttributes() : NamedNodeMap
+ getChildNodes() : NodeList
+ getNodeName() : String
+ getNodeType() : short
+ getNodeValue() : String
... lots more
Thirteen interfaces extend Node. The four most important are Document, Element, Attr, and CharacterData.
Document
+ getDoctype() : DocumentType
+ getDocumentElement() : Element
... lots more
Element
+ getAttribute(String) : String
+ hasAttribute(String) : boolean
Attr
+ getName() : String
+ getValue() : String
CharacterData
+ getLength() : int
+ getData() : String
getChildNodes() method returns a NodeList.
NodeList
+ getLength() : int
+ item(int) : Node
getAttributes() method returns a NamedNodeMap.
NamedNodeMap
+ getLength() : int
+ item(int) : Node
+ getNamedItem(String) : Node