C/C++ Best HTML parsing library for C++



Reaction score: 2
Messages: 48

Hey guys :)

I am searching for a HTML parsing library for C++ with xPath support.

Thanks in advance :D


Son of Beastie

Reaction score: 2,518
Messages: 3,382

Are you 100% sure it has to be C++ ??? Because doing it in a modern language is likely to be easier. I have used an (X-)HTML parser in Python before, and it was super easy. That one is part of the basic python distribution. I happen to know that there is a package called goquery (in the Go language, which is somewhat similar to C and C++) that people like. Finding one that's in straight C++ is likely to be harder, since that's not commonly used for text handling and web-facing projects.

Sorry about the non-answer to your question, but if you don't find one, consider switching languages, at least for this part of the project.


Son of Beastie

Reaction score: 2,507
Messages: 4,453

Man, I used to know a few. I'll have to look through my bookmarks. I probably still have the links.

EDIT: Well, I guess I don't anymore.
  • Thanks
Reactions: jdb


Active Member

Reaction score: 10
Messages: 195

I have searched hardly, use libxml2 at last, btw it uses MIT license.
  • Thanks
Reactions: jdb