users@jaxb.java.net

Re: Compiling FPML schemas via JAXB 2.x RI XJC

From: Giedrius Trumpickas <trumpyla_at_gmail.com>
Date: Fri, 28 Sep 2007 19:04:38 -0400

I'm afraid that schema change is not an option due fact that these schemas
are defined by www.fpml.org.

On 9/28/07, Aleksei Valikov <valikov_at_gmx.net> wrote:
>
> Hi.
>
> > I have schema type bellow and XJC gives me errors that element
> > "definePosition" is definded in more than one property.
>
> ...
>
> I'm afraid you'll need to reformulate the schema.
>
> The problem is that you have
>
> replaceAllPositions definePosition+ (definePosition | removePosition) *
>
> XJC wants to create the following properties
>
> replaceAllPositions
> definePosition
> definePositionOrRemovePosition
>
> And the problem is that define Position goes into both second and
> third properties. So during unmarshalling JAXB won't know where to put
> this element.
>
> Consider removing the first definePosition element.
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>