Click here to Skip to main content
Rate this: bad
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 at 13-Mar-11 8:07am
Nice options - as it's a bit unclear what OP means by "HTML Trees"
SAKryukov at 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 at 13-Mar-11 8:09am
Nice links :)
hervebags at 13-Mar-11 9:04am
Thanks for the links.
Id don't mean HTML structure. I mean HTML parse tree.
Yusuf at 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 at 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 at 13-Mar-11 11:15am
Good Luck and Thanks for accepting my answer.
SAKryukov at 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
0 OriginalGriff 512
1 Maciej Los 445
2 Sergey Alexandrovich Kryukov 421
3 CPallini 200
4 _Asif_ 135
0 Sergey Alexandrovich Kryukov 6,813
1 OriginalGriff 5,342
2 Peter Leow 3,837
3 Mika Wendelius 2,850
4 CHill60 2,748

Advertise | Privacy | Mobile
Web03 | 2.8.150224.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