evangeline wrote:
So, I should declare a class that looks like this:

class XMLValidateError : public HandlerBase {
  public:
    XMLValidateError();
    void error(XMLException &e);
This signature is wrong, so you aren't overriding the base class function. The correct signature is:

virtual void error(const SAXParseException& exc);

XMLValidateError::XMLValidateError() {

}

void XMLValidateError::error(XMLException &e) {
        char *message = XMLString::transcode(e.getMessage());
Please make sure you call XMLString::release(&message), or this will be a memory leak.

        qDebug() << "XML Error is: " << message << endl;
}

and then:
XMLValidateError *err_handler = new XMLValidateError();

But I still don't get any error messages and it still always returns
true...any thoughts ?
Correct the signature and you will get the error event.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to