How to return Dom Source in Java
Hi,
A typical browser loads raw HTML, parses it, and builds a Document Object Model (DOM).
If the page includes JavaScript that is run when the page is loaded, the DOM can modified by the JavaScript code.
Please, I'm looking for a web browser crowler, witch can not only parses HTML but also applies JavaScript, and return the Dom with the modification.
Something like a program or suggestion witch can help me to return the Dom source (after applying JavaScript) of a website, as string.
Do you have an idea, please? Or code with return the Dom, please
Thanks,
Séraphine
Re: How to return Dom Source in Java
It sticks in my mind that apache has a package for an embedded browser. I can't remember what it is called, and I don't know if it executes javascript or not, but if it did, it would be exactly what you'd want. Try browsing the apache commons, it might be lumped in with the apache http clients and such.
Re: How to return Dom Source in Java
Quote:
Originally Posted by
quad64bit
It sticks in my mind that apache has a package for an embedded browser. I can't remember what it is called, and I don't know if it executes javascript or not, but if it did, it would be exactly what you'd want. Try browsing the apache commons, it might be lumped in with the apache http clients and such.
Thank you very much. I'll looking for and test if I see it. If you've more information, send it to me please
:(handshake):
Re: How to return Dom Source in Java