Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Pulling information from a HTML Tag

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79826
388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Joanne is right (as usual). Look at this FAQ

Closing thread.
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic