This illustration shows mapping to a simple XML document by name. Java class Employee attribute name is mapped to XML attribute NAME by specifying an XPath of only @NAME.