I submitted a bug report about this issue on Friday. You can add your
comments or vote for it. It's bug #1166. 

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1166

Hal

> -----Original Message-----
> From: Noel Sebastien [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 11:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: Digester parser error to another output.
> 
> 
> Hi,
> 
> I use Digester, and I would like to send output error 
> elsewhere than to
> System.out...
> Second, Digester does not propagate parsing error (in my 
> case, I would like
> to get an Exception when a String is written as an attribute 
> value where I
> am waiting a integer).
> Dealing with the same problems, somebody else wrote the 
> following message. I
> found it in the Archive of the mailing list, but I can't find 
> any related
> solutions, whereas it is a common problem.
> Has anybody got a clue on how to solve these issues?
> 
> Thank you in advance.
> 
> Sébastien
> 
> Archive mail : -------------------------------
> 
> Digester seems to be a pretty nice package for translating XML into
> java-objects. I have a question about the error handling though.
> 
> It appears that the Digester doesn't propagate some parsing errors,
> e.g when a required element is missning. It only logs it to stdout.
> 
> I haven't found any way to get notification of those errors.
> I want to make sure that the XML I have parsed, is validate before I
> use the parsed information.
> Also, I don't want all the parsing errors to be written to 
> stdout, because
> I want to take care of the errors and maybe write to other logs
> (and perhaps in other formats) than to stdout.
> Since Digester is declared final one cannot subclass it and override
> the log-methods(or the error-, warning- and fatalError-methods).
> 
> 
> 
> 
> ---------------------
> 
> Un courrier électronique n'engage pas son émetteur. Tout 
> message susceptible de comporter un engagement doit être 
> confirmé par un écrit dûment signé.
> 
> An electronic message is not binding on its sender. Any 
> message referring to a binding engagement must be confirmed 
> in writing and duly signed.
> 
> Ein elektronischer Brief bzw. eine elektronische Nachricht 
> ist für den Absender nicht verbindlich. Jede Nachricht,  
> welche eine Verpflichtung beinhaltet, muß schriftlich 
> bestätigt und ordnungsgemäß unterzeichnet werden.
> 
> ---------------------
> 
> 

Reply via email to