LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2004, 01:38 AM   #1
ashirazi
Member
 
Registered: Jul 2004
Posts: 60

Rep: Reputation: 15
java HTML parser


Hi,

I was wondering if there any java api that would read an html file and output text of a perticular tag?

for example:

<HTML>
<BODY>some body</BODY>
</HTML>

And I could specify to get the text of the body i.e. some body...


Thanks
raven
 
Old 09-20-2004, 03:33 AM   #2
hack_in_box
LQ Newbie
 
Registered: Sep 2004
Location: India
Distribution: Fedora core1, PCQ Linux2004, SuSE8
Posts: 13

Rep: Reputation: 0
Check out the
Code:
javax.swing.text.html and javax.swing.text.html.parser
It provides interfaces to access HTML docs as DOM object
Hope it helps
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
c++ html parser needed gecoool Programming 1 11-07-2005 09:47 PM
HTML, java and drop down menus kpachopoulos Programming 1 11-17-2004 02:10 PM
Installing HTML::Parser via webmin fails dARkHunTEr Linux - Software 10 05-01-2004 04:29 PM
HTML::Parser behaviour lackluster Programming 0 08-06-2003 08:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration