Tecnologías XML / XML / XML in a Nutshell / Referencia DOM / Jerarquía de objetos

(Extracto de «XML in a Nutshell», de Elliotte Rusty Harold y W. Scott Means)

La siguiente tabla muestra la jerarquía de los objetos DOM:

Objeto

Objetos hijos permitidos

Document

Element (uno como máximo)
ProcessingInstruction
Comment
DocumentType (uno como máximo)

DocumentFragment

Element ProcessingInstruction Comment Text CDATASection EntityReference

DocumentType

Ninguno (nodos hoja)

EntityReference

Element ProcessingInstruction Comment Text CDATASection EntityReference

Element

Element Text Comment ProcessingInstruction CDATASection EntityReference

Attr

Text EntityReference

ProcessingInstruction

Ninguno (nodos hoja)

Comment

Ninguno (nodos hoja)

Text

Ninguno (nodos hoja)

CDATASection

Ninguno (nodos hoja)

Entity

Element ProcessingInstruction Comment Text CDATASection EntityReference

Notation

Ninguno (nodos hoja)

  

 

 

 

volver arriba