Results 1 to 2 of 2
  1. #1
    sudukrish is offline Member
    Join Date
    Apr 2009
    Rep Power

    Default reading an Html file and checking for urls

    I have a situation in which I have to read the HTML file and get all the links in it and hava to validate each link.Can I read the html similar to that of a text file and look for the ref string ? will it work or is there any better way of doing it ??

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Cambridge, UK
    Rep Power


    That is the simplest way of doing it. If you're going to be creating more xml using them, consider org.w3c.dom.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. Help in reading values from html form in java
    By ichkoguy in forum Advanced Java
    Replies: 7
    Last Post: 03-16-2009, 08:45 AM
  2. Problem in reading HTML input field while uploading file
    By sudipanand in forum Java Servlet
    Replies: 1
    Last Post: 11-27-2008, 10:26 AM
  3. How can I include a html file in html textarea?
    By surya_dks in forum New To Java
    Replies: 2
    Last Post: 10-04-2008, 07:20 AM
  4. Reading URLs Protected with HTTP Authentication
    By Java Tip in forum
    Replies: 0
    Last Post: 04-07-2008, 07:58 PM
  5. Checking of file was modified on the server
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-02-2008, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts