I think the above two lines can be: `while (xml->readNextStartElement()) {`

Correct me if I'm wrong, but I implemented `QXmlStreamReader::readNextStartElement` and that's how I intended it to be used. :-)