Darran-

Just to clarify, are you attempting to use a binding file to generate
classes from your schema?  Or are you using a mapping file to generate
the XML using the existing java classes?

In the later case, it should be pretty easy to get it set up using the
InterfaceA, at which point Castor doesn't need to know much about
ClassA or ClassB.  If you're attempting to use the binding file, I
unfortunately don't know much about that.

Thanks,
Stephen


On 4/12/06, White, Darran <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
> I have 2 classes (class ChildA, class ChildB) that both implement an
> interface (InterfaceA). A third class (class C) contains a list of
> interfaceA.
>
> Now my XML schema has a element that maps to class C which has a sequence of
> elements that map to ChildA and ChildB. I would like these to be added to
> the list in C but I`m only able to add one <xml-bind> tag to the class
> mapping for class C. Does anyone know if this kind of behaviour is possible
> and if so how is it done??????? I`ve checked the docs on the Castor site and
> can`t see any way of doing this except by using the <extends> tag but I`m
> not sure how this works as its not that well documented.
>
> A second question is if the source generator is used to generate the source
> files from a schema can these be annotated somehow so extra functionality
> can be added to these source files which won`t be over written if the
> generator is run again.
>
> Many Thanks
>
> Darran
>
>        This message may contain privileged and/or confidential information.
> If you have received this e-mail in error or are not the intended recipient,
> you may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.  Thank you.

Reply via email to