This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "parsing HTML" Watch "parsing HTML" New topic
Author

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"
Sheriff

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
MalformedURLException
Clicking on HyperLink
JavaScript problem
First time with applets
mayscript attribute