[Qt-interest] QXmlSchemaValidator and QAbstractMessageHandler

Vyacheslav V. Yurkov uvv.mail at gmail.com
Sun Aug 1 09:33:22 CEST 2010


Iñaki Griego wrote:
>
> Hi Qt users. This is my first email in this mailing list.
>
> 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 only reports just one. Is this a 
> bug in QXmlSchemaValidator or it is the normal behavior?
>
> Thanks in advance
>
Hi Iñaki,
I believe this is a bug, I have the same issue when I am validating XML 
Schema using QXmlSchema class.
I think parser should report as mush errors as possible in case if these 
errors are non-critical. The reason for reporting just one error could 
be either the document has just one error or the error parser encounters 
with is critical.

-- 
Yours sincerely,
Vyacheslav V. Yurkov




More information about the Qt-interest-old mailing list