For us using the source generator is a problem.
We're using castor to incorporate XML in an existing code-base so the class structure 
is already there and we just want to map the data into the structure.

> -----Original Message-----
> From: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
> Subject: Re: [castor-dev] XML choice mapping question
> 
> 
> Hi,
> 
> The best solution is too used a XML Schema (<choice>)to represent your
> XML Structure and generate sources from Castor.
> 
> Is it a problem for you to use the Source Generator?
> 
> Arnaud
> 
> 
> > -----Original Message-----
> > From: Velthuizen, S J H (Bas) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 19, 2002 9:22 AM
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] XML choice mapping question
> > 
> > I have a question about Castor mapping files:
> > We're developing an application for Lucent Technologies and in this
> > project we have an XML file of the following form:
> > <a>
> >   <b> </b>
> > </a>
> > <a>
> >   <c> </c>
> > <a>
> > <a>
> >   <d> </d>
> > <a>
> > So actually, the element in <a> is a choice between b, c and d
> > 
> > We have a java class structure like
> > 
> > class Ja {
> >   Jx x;
> > }
> > 
> > abstract class Jx{}
> > 
> > class Jb extends Jx{}
> > class Jc extends Jx{}
> > class Jd extends Jx{}
> > 
> > We are trying to map the xml file above to the java 
> structure with one
> > mapping file.
> > Is this possible, and if yes, how?
> > 
> > I've tried to find this in the Castor documentation, but 
> can't seem to
> > find anything like it.
> > Could you help me with this problem?
> > 
> > Regards,
> > Bas Velthuizen
> > 
> 

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

Reply via email to