25.1 Object Hierarchy

     

The following table shows the DOM object hierarchy:

Object

Permitted child objects

Document

Element (one is the maximum)

ProcessingInstruction

Comment

DocumentType (one is the maximum)

DocumentFragment

Element ProcessingInstruction Comment Text CDATASection EntityReference

DocumentType

None (leaf node)

EntityReference

Element ProcessingInstruction Comment Text CDATASection EntityReference

Element

Element Text Comment ProcessingInstruction CDATASection EntityReference

Attr

Text EntityReference

ProcessingInstruction

None (leaf node)

Comment

None (leaf node)

Text

None (leaf node)

CDATASection

None (leaf node)

Entity

Element ProcessingInstruction Comment Text CDATASection EntityReference

Notation

None (leaf node)




XML in a Nutshell
XML in a Nutshell, Third Edition
ISBN: 0596007647
EAN: 2147483647
Year: 2003
Pages: 232

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net