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. Generating XML in Qt
Qt 6.11 is out! See what's new in the release blog

Generating XML in Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.4k 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.
  • A Offline
    A Offline
    Arukas
    wrote on last edited by
    #1

    I did a search about writing XML files. After reading the results, I am confused and now writing this post.

    I read that Qt has no dedicated XML writer class. "Source 1":http://doc.qt.nokia.com/qq/qq05-generating-xml.html
    Then I read about XML streaming. "Source 2":http://doc.qt.nokia.com/latest/xml-streaming.html

    So is the first source and old article, and the XML streaming something rescent?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chainsawkitten
      wrote on last edited by
      #2

      The first link appears to be from 2003. There is indeed a QXmlStreamWriter class and it works quite well. The class reference is available "here":http://doc.qt.nokia.com/latest/qxmlstreamwriter.html.

      According to that class reference, it was added in Qt 4.3. (which was released in 2007)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arukas
        wrote on last edited by
        #3

        Thanks. That what I was thinking. What caused my confusion was I didn't find the second source till a week later.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          morinehtar0
          wrote on last edited by
          #4

          I'll give you one very valuable tip:

          Start any search for Qt info in the Qt Documentation !

          It's really quite good...

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Kxyu
            wrote on last edited by
            #5

            Qt has a whole QtXml module with a bunch of classes for DOM and SAX support

            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