| NODE | DESCRIPTION | CHILDREN |
| Document | Represent an HTML or XML document and root of the document tree | Element, ProcessingInstruction, DocumentType, Comment |
| DocumentType | Represent the document type attribute of a document | No children |
| Element | An element of the document | Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference |
| Attr | An attribute | Text, EntityReference |
| ProcessingInstruction | Represent a processing instruction; used in XML | No children |
| Comment | Represent comments in an XML or HTML document; characters between the starting <! - - and ending - - > | No children |
| Text | Text of a node | No children |
| Entity | An entity type item | Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference |