Architecting and designing > XML integration with other methods > Data model to XML transformations > Data model integration > Transforming data elements
  
Transforming data elements
You can drag a data element from your browser or the Choices dialog onto an open XML diagram. The data element becomes either an XML element entity (DTDs only) or XML attribute dependent on the value of the XMLDataAsAttribute setting in the Sa2001.ini file. The options for this setting are:
Option
Description
yes (default)
All data elements become XML attributes.
no
All data elements become XML elements.
prompt
Prompt for each data element.
Note If an existing definition is found for a newly created symbol, the existing definition’s properties are not updated by the result of this transformation. The system assumes that existing XML definitions have more accurate property values.
Property transformations
Data element to XML element
Symbol:
Type
Element
Name
Name of the data element.
MinOccurs
 
MaxOccurs
 
Definition:
Type
XML element
Name
Name of the data element.
Content
TextOnly.
Data Type
Result of data model to XML data type mapping.
Source Data
Dropped data element name.
Data element to XML attribute
Symbol:
Type
Attribute
Name
Name of the data element.
Required
 
Default
Copies the Default Value property from the data element.
Values
 
Data Type
Result of data model to XML data type mapping.
Source Data
Dropped data element name.
Definition:
Type
XML attribute
Name
Name of the data element.
See also
Data model integration