Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parsing HTML

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic