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. State of QtXml

State of QtXml

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 1.6k Views 3 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.
  • R Offline
    R Offline
    rmam
    wrote on last edited by
    #1

    I've just noticed that in the past QtXml was once marked as deprecated but since then that decision was reverted and instead QtXml was "in Done state and will receive no new features. In Qt 6, it may be outside of the Essentials."

    Here's a source:
    https://bugreports.qt.io/browse/QTBUG-32926

    Having this in mind, does anyone know what's the suggested method to handle XML documents in Qt?

    jsulmJ VRoninV 2 Replies Last reply
    0
    • R rmam

      I've just noticed that in the past QtXml was once marked as deprecated but since then that decision was reverted and instead QtXml was "in Done state and will receive no new features. In Qt 6, it may be outside of the Essentials."

      Here's a source:
      https://bugreports.qt.io/browse/QTBUG-32926

      Having this in mind, does anyone know what's the suggested method to handle XML documents in Qt?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rmam said in State of QtXml:

      does anyone know what's the suggested method to handle XML documents in Qt?

      Well, QtXML I would say. It is not deprecated and will not be deprecated in Qt6.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • V Offline
        V Offline
        Vadi2
        wrote on last edited by
        #3

        We switched from QtXML to PugiXML in relatively simply. As a bonus, Pugixml is a ton faster. Here's the xml export class which derived from QtXmlStreamWriter and was rejigged to work with Pugixml.

        1 Reply Last reply
        3
        • R rmam

          I've just noticed that in the past QtXml was once marked as deprecated but since then that decision was reverted and instead QtXml was "in Done state and will receive no new features. In Qt 6, it may be outside of the Essentials."

          Here's a source:
          https://bugreports.qt.io/browse/QTBUG-32926

          Having this in mind, does anyone know what's the suggested method to handle XML documents in Qt?

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          QtXml will probably never die due to clients of Qt using it

          @rmam said in State of QtXml:

          does anyone know what's the suggested method to handle XML documents in Qt?

          QXmlStreamReader and QXmlStreamWriter from Qt core.

          An alternative in active development is boost::property_tree: https://www.boost.org/doc/libs/1_67_0/doc/html/property_tree/tutorial.html

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          4
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            +1 for PugiXML
            Best parser i ever used and super nice API.
            Even being a DOM parser its very fast and as added bonus comes with
            XPath build in.

            1 Reply Last reply
            2
            • R Offline
              R Offline
              rmam
              wrote on last edited by
              #6

              Does anyone happen to know how pugixml fares when compared with POCO XML?

              mrjjM 1 Reply Last reply
              0
              • R rmam

                Does anyone happen to know how pugixml fares when compared with POCO XML?

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                hi
                I found the APIs very similar and would say if you already are using POCO, no reason to
                use pugixml. I did not not speed test compare them though.

                1 Reply Last reply
                3

                • Login

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