File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Read a html file into HTMLDocument

Aish Vish

Joined: Sep 25, 2004
Posts: 1

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?

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
I agree. Here's the link:
subject: Read a html file into HTMLDocument
It's not a secret anymore!