Architecting and designing : XML integration with other methods : Data model to XML transformations : Data model integration : Attributes based on data elements
  
Attributes based on data elements
An attribute that is based on a data element is transformed into either an XML element or XML attribute when dragged from the browser or Choices dialog onto an XML diagram. This depends on the value of the XMLDataAsAttribute setting in the Sa2001.ini file. The resulting XML symbol/definition has a set of properties established based on both the original attribute and data element.
Example
If XMLDataAsAttribute=yes, then:
Attribute1 uses DataElement1 (data element)
This is displayed as:
Property transformations
Attribute to XML attribute
Symbol:
Type
Attribute
Name
Name of the attribute.
Required
Based on the Default Nullity property of the attribute if False Required = yes, if True Required = no.
Default
Copy the Default Value property from the attribute.
Values
 
Data Type
Result of data model to XML data type mapping.
Source Data
Referenced data element name.
Source Attribute
Dropped attribute name.
Definition:
Type
XML attribute
Name
Name of the attribute.
Attribute to XML element
Symbol:
Type
Element
Name
Name of the attribute.
MinOccurs
Based on the Default Nullity property of the attribute if False minOccurs = 1, if True minOccurs = 0.
MaxOccurs
Based on the Unique property of the attribute if False maxOccurs = *, if True maxOccurs = 1.
Definition:
Type
XML element
Name
Name of the attribute.
Content
TextOnly.
Data Type
Result of data model to XML data type mapping.
Source Data
Referenced data element name.
Source Attribute
Dropped attribute name.
See also
Data model integration