You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by John Mostrom <jm...@Adobe.COM> on 2001/02/15 19:17:29 UTC

Setting error reporter in DOMParser constructor

While investigating some error handling problems, I came across what 
looks to be a possible omission in the DOMParser construction. In the 
constructor, the method for setting the error reporter is never 
called and, as a result, the virtual error method in the DOMParser is 
not utilized.

A user can call the setErrorHandler method to accomplish this and, 
with NULL as the parameter to the call, accomplish the same thing as 
setting the error reporter in the constructor. However, I think this 
is counter-intuitive.

Is there a case when you want no error reporter set in the DOMParser?

Thanks in advance for your comments,

John