That was just the ticket.  I should have read the docs more carefully.

Thanks,

Jeff Yemin

Visible Path Corporation

________________________________________________________________

The information contained in this email message and attached files may
be privileged, confidential and protected from disclosure. If you are
not the intended recipient, any dissemination, distribution or copying
is strictly prohibited. If you think that you have received this email
message in error, please notify the sender by reply email and delete the
message and any attachments.
 

> -----Original Message-----
> From: Keith Visco [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 14, 2005 11:45 PM
> To: [email protected]
> Subject: Re: [castor-user] trying to map Java object to 
> nexted XML elements
> 
> 
> Jeff,
> 
> Try the following:
> 
> <field name="head" type="Contact">
>     <bind-xml name="contact" location="head"/> </field>
> 
> --Keith
> 
> 
> Jeff Yemin wrote:
> > 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
> 
> 
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to 
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
> 

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

Reply via email to