About this task
Each element within the parsed tree
can be one of three types:
- Name element
- A name element has a string, which is the name of the element,
associated with it. An example of a name element is XMLElement,
described in XML element.
- Value element
- A value element has a value associated with it. An example of
a value element is XMLContent, described in XML content.
- Name-value element
- A name-value element is an optimization of the case where a name
element contains only a value element and nothing else. The element
contains both a name and a value. An example of a name-value element
is XMLAttribute, described in XML attribute.