xml spy
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 ic-new-schema icon.
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.

 

       tut-sett1

 

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.

 

       tut-sett2

 

Please note:

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.

 

tut-sett2a

 

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.

 

       tut-sett3

 

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.

 

       tut-sett4

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


Previous  Top  Next

© 2008 Altova