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 , which 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:

...

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