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

jdb

Member

Reaction score: 2
Messages: 48

Hey guys :)

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

Thanks in advance :D
 

ralphbsz

Son of Beastie

Reaction score: 1,976
Messages: 2,937

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.
 

drhowarddrfine

Son of Beastie

Reaction score: 1,986
Messages: 3,983

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

jronald

Active Member

Reaction score: 10
Messages: 194

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