You still need to use your own class, derived from HandlerBase, if you
want to catch the calls to the error() callback.
Alberto
evangeline wrote:
Hi, I changed it to this now, but still the same problem (it always returns
true):
DocumentHandler *doc_handler = new HandlerBase();
ErrorHandler *err_handler = new HandlerBase();
parser->setDocumentHandler(doc_handler);
parser->setErrorHandler(err_handler);
try {
parser->setDoSchema(true);
parser->setExternalNoNamespaceSchemaLocation(xml_schema);
parser->parse(xml_file);
qDebug() << "VALIDATE: TRUE " << endl;
return true;
}
Any other idea?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]