IBM Version 5 manual Mapping XML to Html, Source Target

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 203
Image 203

Figure 9-8 XML to XML mapping

Mapping XML to HTML

Now we need to map each item from source to the target. To map, click on the source element then drag on to the target.

Map the elements as follows.

Source

Target

passengerList

HTML

flightNo

CENTER

departure

CENTER

Customer

tr

name

td

membership

td

To match the root, passengerList must be mapped to HTML. The flight number and departure time will be mapped in the center tag. Since the customers can be appeared as several lines, Customer element should be mapped to tr.

Chapter 9. Developing XML Web services 187

Page 203
Image 203
IBM Version 5 manual Mapping XML to Html, Source Target