Mapping between Representations:
Assume we have a classCustomer defined as follows:
Mapping XML to Java:
We can map the following XML objectCustomer in the following way:
Mapping Java to XML:
We can map thecustomer back to XML as follows:
Customer defined as follows:
Customer in the following way:
customer back to XML as follows: