About Diagram Nodes
Diagrams generated by DiagramKit are built of rectangular objects called nodes,
which represent
- Either a single XSD component (e.g. element, attribute, group etc.)
- Or a collection of components of a certain type (e.g. attributes)
The leftmost node is the diagram's root node. It is special because the purpose of the whole diagram
is typically to depict the content model of the XSD component represented by the root node. Sometimes,
the whole diagram consists of the only root node, or the root node encloses all other nodes.
The relations between XSD components are depicted on the diagram in two ways:
- By connecting the corresponding diagram nodes with lines
- By enclosing some diagram nodes into others
Those diagram nodes that enclose other nodes are called complex nodes.
When a node encloses no other nodes, it is called simple nodes.
The majority of nodes on a typical diagram are simple ones.