Oops. I just got a private e-mail from an observant member pointing out
my lack of attention to detail. Just to be clear, I used the term "guys"
in a strictly generic way which included both genders. I should be more
careful to use gender-non-specific terms when addressing more than one
person. My apologies to the female audience.
--Keith
Keith Visco wrote:
Hi guys,
Take a look at ValidationContext and ValidationException. I already
started the groundwork for this. You'll see that ValidationException
already supports chaining and ValidationContext has a fail-fast flag.
Unfortunately, disabling fail-fast has not yet been implemented, but it
was definately on my to-do list. I don't think it would be that
difficult to implement for the Marshaller...but doing so in a "safe"
manner during unmarshalling may be a bit more challenging.
--Keith
Werner Guttmann wrote:
Stephen, Patty
-----Original Message-----
From: Stephen Bash [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 23.
März 2006 14:45
To: [email protected]
Subject: Re: [castor-user] When unmarshalling, need Castor to
validate entire document against schema instead of quitting after
first validation error
Patty-
Unfortunately, I don't think you can replace the ErrorHandler in such
a way that the change will stick. When you call unmarshal, the
Unmarshaller sets the error handler just before starting parsing. So
that means the fix needs to live inside Castor, unless we create a
method for user-supplied ErrorHandlers.
If we decide to do so, why not a similar mechanism to DTDResolver,
which allows some sort of chaining.
Werner
-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty
message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message
to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------