QXmlSchemaValidator and QAbstractMessageHandler
-
wrote on 28 Jul 2010, 11:46 last edited by
Hi!
I am validating an XML file against a Schema using Qt's QXmlSchemaValidator great class. To get a fine grained error messages, I subclassed QAbstractMessageHandler class and passed it to QXmlSchemaValidator in order to get those messages. My problem is QXmlSchemaValidator stops reporting messages after the first one. I know I have 2 errors in my XML but it just reports just one. Is this a bug in QXmlSchemaValidator or it is the normal behaviour?
Thanks in advance
-
wrote on 30 Jul 2010, 13:06 last edited by
Could the trouble be in your handler ? Does it exit/return after the first error ?
-
wrote on 31 Jul 2010, 10:01 last edited by
I just grab the message in void handleMessage(QtMsgType type, const QString& description, const QUrl& identifier, const QSourceLocation& sourceLocation) function, store it in a QList and wait for the next one, which neve came.
-
wrote on 31 Jul 2010, 15:45 last edited by
I think it would be worth asking this on the Qt-Interest mailing list.
-
wrote on 31 Jul 2010, 15:50 last edited by
I'll ask there. Thank you. Anyway, why are two different sites to talk about Qt? Is not better to have everything in just one official site?
1/5