Associations with XML

Meta Data Services Programming

Meta Data Services Programming

Associations with XML

The following example shows how Open Information Model (OIM) associations are encoded in Extensible Markup Language (XML).

Example
<Class1 oim:id="_1" attrib1="...">
      <Class1OriginAssocEnd> <!-- assoc starts -->
            <Class2 oim:id="_2" oim:seqno="1" label="A"
                        name="Alpha" Attribute2="..."/>
            <Class2 oim:id="_3" oim:seqno="2" oim:label="B"
                        name="Beta" Attribute2="..."/>
      </Class1OriginAssocEnd> <!-- assoc ends -->
</Class1>

If an association name is not specified, the name is generated using the following rule:

OriginClassName + OriginAssociationEndName

Given this rule, the association in the preceding example is named <Class1OriginAssocEnd>.

See Also

XML Encoding Reference