We've recently tested the newest version of Castor, 1.1.1, and noticed a
difference in the way this newer version is handling the validation of
the sequence order.  We use Castor to generate Java code from XML
schemas.  The newest version throws a ValidationException when trying to
unmarshall an XML that contains a sequence that is out of order relative
to the schema.  The previous version used to be more flexible with
sequence ordering and would not throw any exceptions just because of
sibling order.  We certainly use validation during unmarshalling.  I can
see how validating the order of sibling elements could be useful for
some applications.  But, for our use, the order of the sequences is not
all that important since the Java code really does not care what order
they are.  I've tried to find a way to have validation turned but
suppress the sequence order validation and cannot seem to find how.  Is
this possible?  If so, would some shed light on how to do this?

Thank you,
Ron Corcuera

Reply via email to