[webkit-dev] construct the dom tree of non Xml valid page

nina s.medjadba at gmail.com
Sun Jun 8 02:03:31 PDT 2008


Thanks David  for response,

I want to load an html page with webkit then contruct his dom tree, I
use Qt4.4 which integrate Webkit.

QWebView v;
QString frameText = v . page() -> mainFrame() -> toHtml();  ////Loading the page


void Charger::Dom-tree(QDomNode node) ////Function which construct dom
tree for html page loaded
{

  if  (node.hasChildNodes ())
        {
           listnode = node.childNodes();
           for(i=0; i<listnode.length() ; i++) {
                                                  e = node.toElement();
                                                  Dom-tree(listnode.item(i));
      			                       }
        }



}


This failed, because there is some missing closings tags !!!


More information about the webkit-dev mailing list