Bookmark Topic Watch Topic
  • New Topic

Pulling information from a HTML Tag  RSS feed

 
Mazhar Ismail
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I am kind of stuck with a requirement in Java and I do not have any clue how to it. I do not have any idea how to do it. So my aim is to grab the text "Sales" (enclosed between the td tag) using java from the below mentioned HTML file. I am new to java. It will of great help if anyone gives me a code for my requirement so that I get an idea how to do it.

I am really really sorry for asking the code but trust me I have read lot of material/forum available online and also referred books but could not find any help. This is urgent as I have to implement this in my project.

PLEASE HELP ME!!!

If I get the solution I will post it on the forum as I always do so that If anyone else comes across this problem it would be easy for the person to solve it.

 
Thomas Thevis
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Report post to moderator
I'm afraid you won't find many people doing the coding stuff for you. However, there will be many people 'round here assisting you in developing a solution. What have you tried so far?
There are third-party APIs for html parsing like org.htmlparser or jtidy. Have you tried them?
If you want/have to code the parsing yourself, you could have a look at the java.util.regex package.

Hope this helps,
Thomas
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yuo've already had help on this. Don't start a new thread as people will just end up repeating what you have already been told.
If you still need help then ask in that thread.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Joanne is right (as usual). Look at this FAQ

Closing thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!