Sybase XML Impact Driver User Manual


 
Chapter 3 Working with an XML model
XSM User's Guide 169
Mapping XML Model objects to PDM objects
You can map elements or complex types and their corresponding attributes to
PDM objects.
The following table shows all the allowed mappings between XML Model
objects and PDM objects:
XML Model object PDM object
Element Table, view, column, view column
Element attribute Column, view column
Complex type Abstract data type
Complex type attribute Abstract data type attribute
In this section, we will talk about tables but the functionalities also apply to
views, columns and/or view columns.
Mapping elements
You can map elements to PDM objects.
Once the tables are identified and mapped with the elements, you can define
mappings between columns and attributes.
But columns can also be mapped to elements. Mapping a column either to an
attribute or an element depends on the schema presentation:
Case 1:
A column should be mapped to the name attribute.
Case 2:
A column should be mapped to the name element.
You have to use the Mapping page of an element property sheet to define
element mappings.