Results 1 to 11 of 11

Thread: Using SAX to parse XML

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to read a xml file in qt?

    As Chris told you, the philisophy behind SAX and DOM is completely different. With SAX you can't "get root node" or "next sibling". It works the other way round -- the framework calls one of your methods and says "ok, and now here is a tag for you -- handle it". I would really advise AGAINST using pure SAX approach in favour of using QXmlStreamReader which is much easier to handle. It has all the benefits of SAX approach but none of its drawbacks.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    sudha (13th January 2012)

Similar Threads

  1. parse xml
    By vinayaka in forum Newbie
    Replies: 1
    Last Post: 3rd October 2011, 16:42
  2. how to parse xml with a image using qt?
    By bezlew in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2009, 09:04
  3. parse xml
    By rmagro in forum Qt Programming
    Replies: 2
    Last Post: 2nd July 2009, 22:27
  4. XML parse
    By arunredi in forum Newbie
    Replies: 2
    Last Post: 27th April 2008, 01:22
  5. Best way to parse a string
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2007, 12:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.