Click here to Skip to main content
11,927,711 members (32,839 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ C HTML Trees

I have tried o look in Google but, it seems like it is going to take me 2 days to find good notes or a good tutorial.
I am also looking for easy to follow notes or tutorials on HTML parsers

The tutorials have to be for C++ programmers.

Thanks in advance
Posted 13-Mar-11 1:47am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1



Espen Harlinn 13-Mar-11 8:07am
Nice options - as it's a bit unclear what OP means by "HTML Trees"
SAKryukov 13-Mar-11 15:43pm
How did you understand this Question? My 5.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You question is some what not complete. For starters you need to explain what you mean by 'HTML Trees'. The fact that you put it in quotes suggest that you meant something, but clearly you know that is not the term. Also, the fact that you are unable to find any good hits with google may be the use of incorrect terms.

By 'HTML Trees', I am assuming you are talking about the html structure, right? something like

Is that what you have in mind? If not then there is no point in continuing. But if we are in agreement, well, depending when shallow or somewhat deep you work/project/assignment is the best source is to learn something about HTML specification. You don't need to go deep, just enough to get you going and solve your problem. I understand you are not trying to create the next killer app Browser. Here is good starting point[^]

Next there are few C++ HTML parsers around. You will be able to better understand what is going on if you have some understanding of the HTML spec. Then when you ready check

HTML Reader C++ Class Library[^][^]

and of course our old friend recommends this [^]
Espen Harlinn 13-Mar-11 8:09am
Nice links :)
hervebags 13-Mar-11 9:04am
Thanks for the links.

Id don't mean HTML structure. I mean HTML parse tree.
Yusuf 13-Mar-11 10:31am
I guess you are somewhat confused. A tree is nothing but a data structure. You can save/put/set your parsed html into any format or shape you like. You may want to concentrate on the HTML parsing issue. Once you are able to parse it, how you want to save it or render it becomes your choice.
hervebags 13-Mar-11 10:35am
I think you have given me the best answer.
You are right, i was confused. I will concentrate on HTML parsing.
Yusuf 13-Mar-11 11:15am
Good Luck and Thanks for accepting my answer.
SAKryukov 13-Mar-11 15:44pm
Good, it's a 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 13 Mar 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100