Qt 6.11 is out! See what's new in the release
blog
QXmlSchemaValidator and QAbstractMessageHandler
General and Desktop
5
Posts
2
Posters
4.7k
Views
1
Watching
-
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
-
Could the trouble be in your handler ? Does it exit/return after the first error ?
-
I think it would be worth asking this on the Qt-Interest mailing list.