XML-Technologien / XML / XML in a Nutshell / DOM-Referenz / Objekt-Hierarchie

(Auszug aus "XML in a Nutshell" von Elliotte Rusty Harold & W. Scott Means)

Die folgende Tabelle zeigt die Hierarchie der DOM-Objekte:

Objekt

Erlaubte Kindobjekte

Document

Element (maximal eins)
ProcessingInstruction
Comment
DocumentType (maximal einer)

DocumentFragment

Element ProcessingInstruction Comment Text CDATASection EntityReference

DocumentType

Keine (Blattknoten)

EntityReference

Element ProcessingInstruction Comment Text CDATASection EntityReference

Element

Element Text Comment ProcessingInstruction CDATASection EntityReference

Attr

Text EntityReference

ProcessingInstruction

Keine (Blattknoten)

Comment

Keine (Blattknoten)

Text

Keine (Blattknoten)

CDATASection

Keine (Blattknoten)

Entity

Element ProcessingInstruction Comment Text CDATASection EntityReference

Notation

Keine (Blattknoten)

  

 

 

 

nach oben