Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXmlSchemaValidator and QAbstractMessageHandler

QXmlSchemaValidator and QAbstractMessageHandler

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cyttorak
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      ygor
      wrote on last edited by
      #2

      Could the trouble be in your handler ? Does it exit/return after the first error ?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cyttorak
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          ygor
          wrote on last edited by
          #4

          I think it would be worth asking this on the Qt-Interest mailing list.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Cyttorak
            wrote on last edited by
            #5

            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 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved