I have the following class structure:

public class Activity {
    private Contact head;

    public Contact getHead() {
        return head;
    }
} 
 
public class Contact {
    private String name;
    private String emailAddress;

    public String getName() {
        return name;
    }

    public String getEmailAddress() {
        return emailAddress;
    }
}

Which I want to map to the following XML snippet:

<activity>
   <head>
      <contact>
        <name>David Hernandez</name>
        <address>[EMAIL PROTECTED]</address>
      </contact>
   </head>
</activity>


Activity is not the root element.  I can't figure out how to get the
extra level of XML hierarchy in there.  Any ideas?


Thanks,

Jeff Yemin

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to