Hi /lexi,
> I've played with JAXB RI validation some time ago and did not succeed to
unmarshall an
> incomplete/invalid document. I have hade similar issues: unexpected end
of element and so on.
> The problem seems to be in "states" of unmarshaller: if element
unmarshalling is comehow breaken,
> the state does not change correctly and defaults to "unexpected end"
behaviour. So this is,
> strictly speaking not validation but unmarshalling error. I am not sure
that partial unmarshalling
> is supported by JAXB RI and would be grateful if someone could clear
this out for us.
It seemed to me partial unmashalling is possible. The elements that have
invalid values would not be set in the unmarshalled object (see my
previous e-mail for example).
However, as you mentioned the strange behaviour can only be a bug in JAXB
RI, that shows up only in some conditions.
Thanks,
Gagan