[Qt-interest] Html parsing
Sean Harmer
sean.harmer at maps-technology.com
Mon Dec 1 14:57:14 CET 2008
Hi,
On Monday 01 December 2008 13:48:10 Frédéric LECONTE wrote:
> What the best solution to parse html page ?
Define best ;-)
> I tried to parse it with QXmlStreamReader but like I thought my web page is
> not valid xml( not a XHTML page. for information the web page I try to
> parse is translate.google.fr).
One method is to run the html document through something that can convert it
to a valid XML document such as htmltidy.
> Can I use QWebPage, not display it on screen and find a way to get certain
> fields ?
You can access elements via javascript which has been discussed many times on
the list.
HTH,
Sean
More information about the Qt-interest-old
mailing list