[Interest] is there any Class in Qt for pulling data out of HTML?

Thiago Macieira thiago.macieira at intel.com
Tue Dec 16 08:21:14 CET 2014

On Thursday 11 December 2014 18:06:55 iMath wrote:
> the Qt documentation says
> The Qt XML Module is provided for compatibility with older code. It has been
> superseded by the QXMLStreamReader and QXMLStreamWriter classes in the Qt
> Core Module.
> I think we can use QDom* class to get data out of HTML before this claim
> ,although I never used it. does this claim mean we can use QXmlStreamReader
> for pulling data out of HTML ? I don't know the difference between XML and
> HTML.‍

You cannot. QDom*, QXml* require XML input. HTML is not valid XML, it's only 
SGML. XHTML is valid XML, but no one uses that anymore.

The only things that can parse HTML are QtWebKit and qtwebengine.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list