Ok, thanx. I see, that it is true.
And I have one more problem here.
<xsd:complexType name="Item">
<xsd:sequence>
<xsd:element name="pris" type="xsd:double"/>
<xsd:element name="billede" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
As you see elements with name "pris and billede" - are danish words and
they will be used in XML documents, but in Java Code I want to have English
names for methods. How I may do it?
On 8/28/07, Malachi de Ælfweald <malachid_at_gmail.com> wrote:
>
> If I had to guess, I'd say that the reason is your min=0 and
> max=unbounded... You are saying that a single item may contain unlimited
> number of titles and ISBNs.
>
> I think what you really want is the 'Item' sequence to have only one
> instance of 'title' and 'ISBN' -- then the calling template to wrap it in a
> list.
>
> Malachi
>
> On 8/28/07, Denis <java2xp_at_gmail.com> wrote:
> >
> > Hi,
> >
> >
> > JAXB maps
> >
> > <xsd:complexType name="Item">
> > <xsd:sequence minOccurs="0" maxOccurs="unbounded">
> > <xsd:element name="titel" type="xsd:string" minOccurs="1"/>
> > <xsd:element name="isbn" type="xsd:string" minOccurs="1"/>
> > </xsd:sequence>
> > </xsd:complexType>
> >
> > to
> > public List<JAXBElement<?>> getTitelAndIsbn()
> >
> >
> > but I want to have String getTitel() and String getIsbn() methods. How I
> > may have it?
> >
> >
>
--
Denis Bessmertnyj
+3 8 050 1030623
ICQ: 7780453