Hello,

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

Code:
void Person::findIt(QNetworkReply *repToRead)
{


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

    QString string(bytes); // string

    QXmlStreamReader xml(string);


    while (!xml.atEnd()) {
        if(xml.readNext()){

            qDebug() << xml.name();

            if(xml.name() == "head"){
                xml.skipCurrentElement();
            }

        }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:
""
""
"html"
""
"head"

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