Extensible Markup Language (XML) represents information as nested lists of elements or references to elements. Lists can be either ordered or unordered; the occurrence of element types is optional or mandatory.
The following diagram shows the representation of the Open Information Model (OIM) "class has associations" and "associations contain objects" in XML.
<object attribute="_">
<association>
<object label="C" name="Lisa" seqno="1">
...
</object>
<object label="A" name="John" seqno="2">
...
</object>
<object label="B" name="Tom" seqno="3">
...
</object>
</association>
...
</object>
Object elements contain lists of association elements, which, in turn, contain lists of object elements.