I am making a new browser and I need to get the DOM of a webpage to do it. How do I do this?
Asked
Active
Viewed 968 times
1
-
`HTML (text markup) -> "HTML Parser" -> DOM (structure/API)`. However, you'll likely need more than "the DOM" for anything not absolutely trivial .. consider integration with (e.g. using) existing browser engines. – Dec 16 '12 at 20:08
-
1Discussion of the various Java HTML parsers: http://stackoverflow.com/q/3152138/209103 – Frank van Puffelen Dec 16 '12 at 21:37
-
If you've ever heard of google gravity this browser is meant to create a whole browser just like that. – Octavia Togami Dec 16 '12 at 23:33
1 Answers
1
You will have to write an HTML parser or use an existing one such as http://jsoup.org/

ams
- 60,316
- 68
- 200
- 288