GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes Read a html file into HTMLDocument Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Read a html file into HTMLDocument" Watch "Read a html file into HTMLDocument" New topic
Author

Read a html file into HTMLDocument

Aish Vish
Greenhorn

Joined: Sep 25, 2004
Posts: 1
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

Joined: Jun 03, 2000
Posts: 5040
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Read a html file into HTMLDocument