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
Forum Updated to NodeBB v4.3 + New Features

Generating XML in Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 1.9k 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 5 Dec 2011, 22:11 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 5 Dec 2011, 22:50 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 5 Dec 2011, 23:03 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 6 Dec 2011, 08:45 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 6 Dec 2011, 09:04 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

            1/5

            5 Dec 2011, 22:11

            • Login

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