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. [solved]Xml Schema and QDom
Forum Updated to NodeBB v4.3 + New Features

[solved]Xml Schema and QDom

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.6k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    blex
    wrote on last edited by
    #1

    QXmlSchemaValidator is used to validate the file against the schema. QDomDocument is used to load the file into the DOM tree.

    So, to validate and create DOM the file should be parsed twice.

    Is it possible to limit the file parsing only to one parse?


    Oleksiy Balabay

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      As far as I know: no.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        blex
        wrote on last edited by
        #3

        [quote author="Andre" date="1291464828"]As far as I know: no.[/quote]

        I expected this answer. Sadly. Thanks :)


        Oleksiy Balabay

        1 Reply Last reply
        0
        • I Offline
          I Offline
          infoctopus
          wrote on last edited by
          #4

          yes, data parsing cannot be limited to only one parse. However you can avoid reading a file twice, since both classes work with QByteArray as data

          Qt rulez

          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