This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: parsing HTML
Similar Threads
Clicking on HyperLink
JavaScript problem
First time with applets
mayscript attribute