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 el...@ni.com on 2003/03/05 00:35:31 UTC

Question about DOMErrorHandler

I have not been able to get the DOMErrorHandler interface to return any
information.  Even while using the DOMPrint example with the schema and
intentionally submitting non-valid code, the error is always returned
through the DOMTreeErrorReporter (ErrorHandler).

I thought the DOMErrorHandler was supposed to get called to report errors
that happen while processing XML data.  Is validating a document not such
an operation?

Any help would be greatly appreciated.

Thanks,
Elliot Rapp


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Question about DOMErrorHandler

Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
	Are you binding your error handler with the parser? IN DOMPrint 
this is where it happens:


    DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter();
    parser->setErrorHandler(errReporter);

If you create you own you must tell the parser to use it. If this is not 
the problem then post a section of your code and well take a look.

Gareth

On Tue, 4 Mar 2003 elliot.rapp@ni.com wrote:

> I have not been able to get the DOMErrorHandler interface to return any
> information.  Even while using the DOMPrint example with the schema and
> intentionally submitting non-valid code, the error is always returned
> through the DOMTreeErrorReporter (ErrorHandler).
> 
> I thought the DOMErrorHandler was supposed to get called to report errors
> that happen while processing XML data.  Is validating a document not such
> an operation?
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Elliot Rapp
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org