Menu

Parsing a simple html document

Help
2005-08-04
2013-04-27
  • THOMAS Alexandre

    Hi

    I just find your project wich looks so nice.
    BTW I can succed to create a simple parsing of a html document. I search anyway for simple example, but the Wiki on the WWW is out and the wiki on the archive seems to net be really recent. Some classes explain didn't exists any more (like import org.htmlparser.tags.Tag;)

    Is there any way I can find a simple example of parsing my html document with the 1.5 version ?

     
    • Derrick Oswald

      Derrick Oswald - 2005-08-05

      I can only suggest the javadocs:
        http://htmlparser.sourceforge.net/javadoc/index.html
      probably starting with the Parser class.

       
      • THOMAS Alexandre

        Note : I've repass with using the version 1.4 wich is compatible with the examples I found..

         
    • THOMAS Alexandre

      Thanks a lot...
      BTW I've found one little example wich can parse a sample html example... But I've a problem

      Example of a html page

      <body>
      <p>
      Hello everybody <b> It's fun today</b> Oh yeahhhhh! </p>
      </body>

      Actually I can do that

      With the example I found I can only get the code on the bold bracket (it's fun today) or only the entire text on the <p> brackets.

      How can I get each parts
      - Hello everybody
      - It's fun today
      - Oh yeahhhhh!
      separatly

      I can't found the way to do that ??

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.