users@jaxb.java.net

Re: Configuration/Customization

From: Malachi de AElfweald <malachi_at_EOTI.ORG>
Date: Wed, 26 Mar 2003 17:51:41 -0700

On Mon, 24 Mar 2003 07:16:54 -0800, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:
>The spec requires the compiler to generate an interface for every complex
>type. Thus I'm afraid what you'd like to see cannot be done, without
>removing the <serviceList> tag.
>
>If you can remove this tag, then
>
> <complexType name="pandoraConfig">
> <complexContent>
> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
> <sequence>
> <element name="service" type="{http://devel.eoti.org/pandora}serviceConfiguration" maxOccurs="unbounded"/>
> <element name="vhosts" type="{http://devel.eoti.org/pandora}domains"/>
> </sequence>
> <attribute name="mimetypes" type="{http://www.w3.org/2001/XMLSchema}string" />
> </restriction>
> </complexContent>
> </complexType>
>
>should do it.

The XML file has the <services/> and <vhosts/> tags, which contain <service/> and <vhost/> tags respectively. It is expected that there will be 50+ of each of these, which is why they are wrapped -- to keep the XML looking clean. Is your suggestion to remove the other tags?

Thanks,
Malachi