![]() |
| Previous Top Next |
Setting up the mapping environment |
This section deals with defining the source and target schemas we want to use for the mapping.
| • | Start MapForce. |
Creating the source schema component:
| 1. | Click the Insert XML Schema/File |
| 2. | Select the mf-ExpReport.xsd file from the Open dialog box. |
You are now prompted for a sample XML file to provide the data for the preview tab.
| 3. | Click the Browse... button, and select the mf-ExpReport.xml file. |
The source schema component now appears in the Mapping tab.

| 4. | Click the expense-report entry and hit the * key, on the numeric keypad, to view all the items. |
| 5. | Click the expand icon at the lower right of the component window, and resize the window. |

MapForce can automatically generate an XML schema based on an existing XML file, if the XML Schema is not available. A dialog box automatically appears, prompting you if an accompanying XML Schema file cannot be found.

Creating the target schema component:
| 1. | Click the Insert XML Schema/File icon. |
| 2. | Select the ExpReport-Target.xsd file from the Open dialog box. |
You are now prompted for a sample XML file for this schema.
| 3. | Click the Skip button, and select Company as the root element of the target document. |

The target schema component now appears in the mapping tab.
| 4. | Click the Company entry and hit the * key on the numeric keypad to view all the items. |
| 5. | Click the expand window icon and resize the window. |

We are now ready to start mapping schema items from the source to the target schema.
|