Community articleThe Node Structure
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

When a form is loaded into memory, it is constructed as a series of linked nodes. Each node represents an element of the form, and together these nodes create a tree that describes the form. The following diagram illustrates the general composition of a single node.
A box divided into four, containing the names contained within a single node. The names are: Type, Literal, Identifier and Compute.

Each node within the tree has the following properties:
  • Type — For page and item nodes, this describes the type of node, such as button, line, field, and so on. Page nodes are always of type page.
  • Literal — The literal value of the node (for example, a literal string). If the node has a formula, the result of the formula will be stored here.
  • Identifier — The page tag, item tag, option name, or custom name assigned to the node.
  • Compute — The compute assigned to the node (for example, "field_1.value + field_2.value"). The result of the compute will be stored in the literal of the node.
Depending on the node type, some of these properties may be null.