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?
--
View this message in context:
http://www.nabble.com/validating-xml-with-xsd-schema-tp23315036p23319102.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]