Hi,
is it possible to unmarshal documents where the class of
the root element is unknown, but for which a schema with
generated descriptors exist?
I have a schema which uses contains extension elements -
any of which may be a root element in a document.
Eg, given that the following:
complexType A
element B extends A
element C extends A
element D extends A
etc...
can produce documents:
<?xml version="1.0" ?>
<B>
<snip />
</B>
and
<?xml version="1.0" ?>
<C>
<snip />
</C>
etc.
I would like to iterate through the documents and unmarshal them,
however, not knowing the root element in advance,
I can't construct an Unmarshaller.
I've tinkered around with mapping.xml files, and
ClassDescriptorResolverImpl without any luck.
I would also like to avoid embedding them in a wrapper.
Thanks
Tim
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev