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. XML in QT [Solved]:)
Forum Updated to NodeBB v4.3 + New Features

XML in QT [Solved]:)

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 3.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.
  • J Offline
    J Offline
    Julie1986
    wrote on last edited by
    #1

    I know how to do it in QML but I would also like to know how to do it in Qt. I searched in google could not find a good example. Kindly send me the link if you have or some example explaing how to parse xml.

    Thanks a ton

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      Please have a look at "Qt classes for XML processing":http://qt-project.org/doc/qt-4.8/xml-processing.html

      http://anavi.org/

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Julie1986
        wrote on last edited by
        #3

        I already had a look at this but its too complicated. I have seen several documentation but no example. Kindly share if u have an example or work out an example if you have time. I really appreciate it. thanks in advance

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          "XML Examples":http://doc.qt.nokia.com/4.7-snapshot/examples-xml.html

          You have examples for XML parsing with both DOM and SAX API.

          http://anavi.org/

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Julie1986
            wrote on last edited by
            #5

            [Solved.] Thanks Mr. Anavi.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              leon.anavi
              wrote on last edited by
              #6

              [quote author="Julie1986" date="1346750421"][Solved.] Thanks Mr. Anavi.[/quote]

              You are welcome :)

              http://anavi.org/

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

                Note that Qt has a third API for XML parsing (and writing), that is neither SAX nor DOM: QXmlStream. Check out [[doc:QXmlStreamReader]] and [[doc:QXmlStreamWriter]] for details. I find it easier to use in many cases than the other two, and it is situated in QtCore (so no additional library needed).

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  Julie1986
                  wrote on last edited by
                  #8

                  oh nice. Thank you Andre

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mlong
                    wrote on last edited by
                    #9

                    Please be sure and edit your original post to add [Solved] to the title. Thanks!

                    Software Engineer
                    My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

                    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