This illustration shows mapping to a XML document using self XPath. Java class Employee
is in a composite relationship with a Java class Address
. Employee
's attribute name
and Address
's attribute street
mapped to XML attribute NAME
and STREET
by specifying a self XPath.