- 6 types of node:
-
root, element, attribute,
text, comment, processing instruction
- root of tree is different from (and parent of) root
element of the document (
CD
in example)
- in the example on the previous slide
- the special root node is red
- element nodes are yellow
- attribute nodes are pink
- text nodes are green
- element nodes have associated set of attribute nodes
- attribute nodes are not children of element nodes
- order of child element nodes is significant