Figure 1


The Document object hierarchy.

Document
  Element
  ProcessingInstruction
  Comment
  DocumentType
DocumentFragment
  Element
  ProcessingInstruction
  Comment
  Text
  CDATASection
  EntityReference
DocumentType
EntityReference
  Element
  ProcessingInstruction
  Comment
  Text
  CDATASection
  EntityReference
Element
  Element
  Text
  Comment
  ProcessingInstruction
  CDATASection
  EntityReference
Attribute
  Text
  EntityReference
ProcessingInstruction
Comment
Text
CDATASection
Entity
  Element
  ProcessingInstruction
  Comment
  Text
  CDATASection
  EntityReference
Notation