Quote Originally Posted by axeljaeger View Post
You want to create a "hierarchical parser", is that correct? You see XML as a tree and you want to have two subtrees parsed by a different parser?
Correct. How I have it setup now is BaseXmlReader has a constructor that accepts a pointer to a QXmlStreamReader. It then uses that as the reader instead of creating a new instance like it would with other constructors. It keeps track if it was given another QXmlStreamReader or it created it's own on construction, so at destruction it doesn't delete the QXmlStreamReader it was given from a parent reader.