I'm trying to parse a Html page using QXmlStreamReader but Im stuck somewhere...
I use this method to parse the data

void Person::findIt(QNetworkReply *repToRead)

    QByteArray bytes = repToRead->readAll();  // bytes

    QString string(bytes); // string

    QXmlStreamReader xml(string);

    while (!xml.atEnd()) {

            qDebug() << xml.name();

            if(xml.name() == "head"){

        }else if(xml.isEndElement()){
            qDebug() << "endElement";


I would like to skip the <head> because of META tags.. and go straight to the body..

I'm getting this in console:

and nothing else..how can I bypass the header section?
is there another way to parse html strings in Qt?