#include #include int main() { QString xml = QStringLiteral("" "" "" "" "" "" "" "" "" "" "" "" "]>" "&lol9;"); QXmlStreamReader rdr(xml); while (!rdr.atEnd()) { if (rdr.isStartElement()) { qDebug() << "In element " << rdr.name() << ", contents: " << rdr.readElementText(); } rdr.readNext(); } return 0; }