Some message parsers have complex models in which it is
not enough to identify a field by its name and an array subscript.
In these cases, you associate an optional field type with an element
of data in the tree format.
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.