This section describes how SOAP Encoding handles multiple references and circular references.
To help serializing multiple reference, SOAP encoding specification offers the following rule:
Rule 6. When serializing an labeled inbound edge, "enc:id" attribute can be added to provide an identification
to the node. If this node has other labeled inbound edges, they can be serialized with "enc:ref" attributes
to refer to the node by the identification defined in the "enc:id" attribute. Of course, the value of "enc:id"
must be unique.
Example 5 - Multi references: The following graph represents two compound values sharing the same sub value.
--- Bill -->( )--- mother --->
( )<-- Mary ---
--- Mike -->( )--- sister --->
Using the "enc:id" and "enc:ref" attributes, this graph can be easily serialized as: