The question was, for what construct in the XML schema will xsd2java end up with that annotation. The answer turns out to be for an element with an anonymous complex type as its content.
> -----Original Message----- > From: Glen Mazza [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 31, 2007 11:15 AM > To: [email protected] > Subject: Re: How to get xsd2java to plant an @XmlRootElement on a class? > > I think that annotation is placed on Java classes only, not on XSD's. > > Glen > > Am Mittwoch, den 31.10.2007, 10:22 -0400 schrieb Benson Margulies: > > To construct a test case, I need to set up a .XSD so that some element > > in there gets an @XmlRootElement annotation. > > > > Anybody know the recipe? > >
