Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is an example of user defining a Type (PostalAddress) that is a container, and using it as a composite attribute in the DataModel (<PostalAddress name="VendorAddress"/>). By using this type, the DataModel will have attributes of:

VendorInfo.VendorAddress.Street

VendorInfo.VendorAddress.City

VendorInfo.VendorAddress.Zipcode

Code Block
languagexml
titleUsing composite attributes
linenumberstrue
<Def Name="PostalAddress">
 <String Name="Street"/>
 <String Name="City"/>
 <String Name="Zipcode"/>
</Def>
<DataModel Name="VendorInfo">
  <Sid name="VendorSysId"/>
  <String name="vendorName"/>
  <String name="vendorTitle"/>
  <PostalAddress name="VendorAddress"/>
  <String Name="DeviceTypes" Cardinality="0..m"/>
</DataModel>