
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