Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - JAXB parsing problem [Thread Next] Re: JAXB parsing problemTo: NULL Date: 8/10/2008 1:12:00 PM
sblev@b... wrote:
> Hi all,
>
> I hope someone can help me with the following:
> I have a problem generating that XSD for the following XML snippet:
>
> <A>
> <B/>
> <B/>
> <C/>
> <B/>
> <C/>
> </A>
>
> Note that <B> and <C> elements that are inside <A> may appear zero or
> more
> times and their order is unknown.
> The issue is that the XSD order indicators (<all>, <choice> and
> <sequence>)
> do not permit this kind of structure,
<xs:element name="A">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="B"/>
<xs:element name="C"/>
</xs:choice>
</xs:complexType>
</xs:element>
should do as a schema. I don't know whether it helps with JAXB however.
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
