Parsing an HTML file using Java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Parsing an HTML file using Java

  1. #1
    Join Date
    Jan 2005
    Posts
    45

    Parsing an HTML file using Java

    Hi,

    Suppose I have an HTML file called index.html and I want to parse it like parsing an XML file, look for a specific tag and build the tree structure by using JDOM, DOMBuilder and stuffs. Does anyone know how I can do that? Thanks.

  2. #2
    Join Date
    Nov 2005
    Posts
    9
    Hello,
    Try the javax.swing.text.html.parser classes.

Similar Threads

  1. Replies: 2
    Last Post: 04-17-2009, 11:14 AM
  2. Java File IO
    By emoos in forum Java
    Replies: 2
    Last Post: 11-03-2005, 07:24 AM
  3. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM
  4. Replies: 0
    Last Post: 03-13-2001, 01:54 PM
  5. Java Security in File access
    By TA in forum Java
    Replies: 0
    Last Post: 09-01-2000, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center