File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes parsing HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "parsing HTML" Watch "parsing HTML" New topic

parsing HTML

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
Hello Friends,
I have to develop an application in Java which takes html page as an input, parse its and changes its "href" attribute of the anchor tag. and "action" attribute of form tag. Is there any inbuild support to do that, or any suggestion how should i proceed.
Thanks in advance

Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You probably want to look at the HTMLEditorKit class.
The JDK1.4 has alot of additional support for HTML manipulation.
[ December 16, 2002: Message edited by: Cindy Glass ]

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: parsing HTML
It's not a secret anymore!