I feel awful, yet happy, yet tired.
A bit of an annoyance is when you spend hours doing something, then a week or two later you see a new library that does that and simplifies the code greatly; allowing maintenance and readability at the same time.
So, take it as you may but if you are using classes like
QDomDocument do yourself a favor and try
pugixml library. It’s said to be faster than the previously mentioned. In terms of code readability
QDomDocument is the nearest that matches pugixml due to its DOM api, yet it’s also slower and consumes a hefty amount of memory in exchange, where as pugixml stays lean.