users@jaxb.java.net

RE: Re: Duplicate nested element

From: Lee Breisacher <LBreisacher_at_seagullsw.com>
Date: Tue, 7 Sep 2004 10:05:53 -0400

Hmm, I don't understand it, but that worked. Thanks!

Lee

> -----Original Message-----
> From: Aleksei Valikov [mailto:valikov_at_gmx.net]
> Sent: Monday, September 06, 2004 1:01 AM
> To: users_at_jaxb.dev.java.net
> Subject: Re: Duplicate nested element
>
> Hi.
>
> Lee Breisacher wrote:
>
> > Hmm, I tried using jaxb:class to rename the classes, but I'm still
> > getting compile errors in the resulting sources. Recall I have this
> > schema fragment:
> >
> > <xsd:element name="TemplateTags">
> > <xsd:complexType>
> > <xsd:sequence>
> > <xsd:element name="TemplateTags">
> > <xsd:complexType>
> > <xsd:sequence>
> >
> <xsd:element
> > name="TemplateTag" type="xsd:string" minOccurs="0"
> > maxOccurs="unbounded"/>
> > </xsd:sequence>
> > </xsd:complexType>
> > </xsd:element>
> > </xsd:sequence>
> > </xsd:complexType>
> > </xsd:element>
> >
> > I used a customization like this:
> >
> > <jxb:bindings
> > node="/xs:schema/xs:element[@name='TemplateTags']">
> > <jxb:class name="TemplateTagsInfo"/>
> > </jxb:bindings>
>
> Try this:
>
> /xs:schema/xs:element[@name='TemplateTags']/xsd:complexType
>
> Or thIs:
>
> <xsd:element name="TemplateTags">
> <xsd:complexType>
> <xsd:annotation>
> <xsd:appinfo>
> <jaxb:class name="TemplateTagsInfo"/>
> </xsd:appinfo>
> </xsd:annotation>
>
> <xsd:sequence>
> <xsd:element name="TemplateTags">
> <xsd:complexType>
> <xsd:sequence>
>
> <xsd:element name="TemplateTag" type="xsd:string"
> minOccurs="0" maxOccurs="unbounded"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd: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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net