And if you want to worry about performance, use a performant approach to parsing XML, such as QXmlStreamReader.

Cheers,
_