This is the default and most commonly used method for mapping source and target elements.
Steps to map elements using Drag and Drop approach
- Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
- Click a source element and drag it to the desired target element. A line is displayed, indicating the mapping between the selected source and target element.
- The graphical representation of the above mapping is displayed in the Mapping Graph Area (see Figure 392).
Figure 392: Map Source and Target Element using Drag and Drop Approach
Once a source and target element is mapped, the letter (M) is displayed next to each mapped source and target element. This signifies that the target element has been mapped to a source element. Refer to Table of Suffixes for details on suffixes displayed next to an element.
Similarly, drag and drop each source and target element that you want to map. The mapping between all source and target elements will be displayed (see Figure 393).
Figure 393: Map Source and Target Elements
If you have loaded multiple source and target schemas, then drag and drop the source and target elements you want to map. The mapping between these elements will be displayed (see Figure 394).
Figure 394: Map Multiple Source and Target Schema Elements
Save the mapping activity and exit the Data Mapper.
If you are mapping multiple source and target schema elements, then you need to assign data streams, before saving the mapping activity.
Once you have mapped source and target elements, you can view and validate the generated mapping XSL, from the Data Mapper screen. You can also view the target XML and view and validate mapping output from this screen.