How do I unmarshall the following XML to a Java class? I am using a mapping file for my other fields. Can it be done via a mapping file? If not, how do I handle it?

 

public class Person {

      private String firstName;

      private String lastName;

}

 

<Person>

      <PersonName>

        <GivenName>Joe</GivenName>

        <FamilyName>Thompson</FamilyName>

      </PersonName>

</Person>

 

Thanks!

 

 

Reply via email to