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.
Bookmarks