Hello all,

I am quite new to JaxB and am having some issues.

I have a Customer class such as

Java Code:
public class Customer{
    private String name
    private String address
    private String country
    private String cellNumber
    private String homeNumber
    private String email
}
I was hoping to create an xml using JaxB that looked like:

Java Code:
<customer>
     <name></name>
     <livingInfo>
           <address/>
           <country/>
     </livingInfo>
     <contactInfo>
           <homeNumber/>
           <cellNumber/>
           <email/>
     </contactInfo>
</customer>
By annotating the class as the XML root and the members as elements, I can achieve:

Java Code:
<customer>
     <name></name>
     <address/>
     <country/>
     <homeNumber/>
     <cellNumber/>
     <email/>
</customer>
but this is not what i really need. Any thoughts?