users@jaxb.java.net

Re: ComplexContent Extensions

From: Malachi de AElfweald <malachi_at_EOTI.ORG>
Date: Thu, 27 Mar 2003 10:20:37 -0700

On Thu, 27 Mar 2003 10:18:22 -0500, Ed Mooney <Ed.Mooney_at_Sun.COM> wrote:

>You're seeing name collisions that you can resolve by giving the content
>property for your base type a different name. You can do that using the
>enclosed external binding file:
>
> xjc -b dynarray.xjb dynarray.xsd
>
><jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> version="1.0">
> <jaxb:bindings schemaLocation="dynarray.xsd" node="/xsd:schema">
> <jaxb:bindings node="./xsd:complexType[@name='content']">
> <jaxb:property name="base"/>
> </jaxb:bindings>
> </jaxb:bindings>
></jaxb:bindings>
>

My apologies. I misunderstood. Searching the archives, I realized you attached the xjb to the end of the file. That did fix the problem, thank you. BTW: Can you explain to me why this fixed the problem?

Thanks again,
Malachi