[Qt-interest] xpath query for webkit

Li Li fancyerii at gmail.com
Wed Jan 26 08:24:46 CET 2011


hi all
    I want to use qt webkit to extraction data from web page. The
QWebElement class only has functions to select Nodes by Standard CSS2
selector syntax.
I'd like to do it by xpath. I can export the whole page's html by
QWebElement::toOuterXml () function. And then use XPath in Qt to deal
with it.
    The problem is -- I can only process Xml but can not select the QWebElement.
    e.g. I can use QWebElementCollection QWebElement::findAll ( const
QString & selectorQuery ) const to select a QWebElement. How can I do
this by
XPath?
    Thanks.



More information about the Qt-interest-old mailing list