• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading specific HTML Tag  RSS feed

 
Paul Wagner
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am trying to read a HTML File. I want to read the "value" attribute of an <input> tag which have specific "id" attribute.

Should I have to read line by line and then parse ? I think there should be specific class given in Java API, which can take attributes and return the value. guide me please.

thnx
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These examples may help, especially #1017: http://www.exampledepot.com/egs/javax.swing.text.html/pkg.html
 
Paul Wagner
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnx dittmer, got it
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!