Parsing HTML content
Solved
General and Desktop
-
Hi and welcome to devnet,
Since html is xml, you can use Qt's xml module to do what you want.
Hope it helps
-
@SGaist Since html is xml (...)
It's not! XHTML is, but it's in rapid decline in favor of Html5. Html has a lot less stricter rules, noticeably a lot of tags don't require a closing tag, which will trip xml parsers.
Qt's xml parser will work or not, depending on how close to xml the html code is. -
Good point, I should have added that if it's only to parse html tables, the XML parser should be enough.