• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Read a html file into HTMLDocument

 
Aish Vish
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a html file and it has got a html table. The content in this table has to replaced with the content from database.

I need to fetch the html file into the Java application. Create a org.w3c.dom.html2.HTMLDocument, manipulate HTMLDocument to update the HTMLTableElement, and save the HTMLDocument back as html file in drive.

I am using JDK1.4, Can you please suggest me how this can be done with some code samples?

Thx,
Aish
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing specific to HTMLDocument but a generic DOM Tutorial link. Use this and by going thru the API's you should be able to figure out some solution.

- m
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic