How to extract all link in a HTML file by using HTMLEditorKit

T

tintac

Hi all!
Can you tell me how to use the HTMLEditorKit to parse HTML file to
extract all link in this file. I parsed and get a set of links but not
all, some link such as link in JavaScript window.open(,,) isn't get.
Thank you!
 
A

Andrew Thompson

Can you tell me how to use the HTMLEditorKit to parse HTML file

HTMLEditorKit cannot parse most HTML that exists.
..to extract all link in this file.

So, no.
..I parsed and get a set of links but not
all, some link such as link in JavaScript window.open(,,) isn't get.

For that you would need to add a JS interpreter. Google 'Rhino' (AFAIR)
Thank you!

You're welcome.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top