S
sblev
Hi all,
I hope someone can help me with the following:
I want to use JAXB in order to quickly load (unmarshel) an XML file
into
java objects. For that, I need to create an XSD file that conforms to
the
XML.
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, and unmarshalling fails.
Can someone please point out to me how to write such an XSD? or maybe
even
the snippet does not conform to correct XML rules?
Thank you,
Barry
I hope someone can help me with the following:
I want to use JAXB in order to quickly load (unmarshel) an XML file
into
java objects. For that, I need to create an XSD file that conforms to
the
XML.
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, and unmarshalling fails.
Can someone please point out to me how to write such an XSD? or maybe
even
the snippet does not conform to correct XML rules?
Thank you,
Barry