Hi Kalyan
It seems like you are using something else other than HtmlParser.
Please download htmlparser from http://htmlparser.sourceforge.net
You will find the documentation as well with all info. To try it
immediately after downloading it, you can try :
run.bat http://www.yahoo.com
Type run.bat to get options for your switches. In your question - you want
to only extract links. So you can do :
run.bat http://www.yahoo.com -l
This will only show you the links.
Regards,
Somik
----- Original Message -----
From: "Kalyan Kumar Mudumbai" <mk...@wi...>
To: <htm...@li...>
Sent: Monday, March 11, 2002 7:49 PM
Subject: [Htmlparser-user] HTML Parsing
> Hi All,
> how do I parse an HTML document and obtain the value of a tag in that
> document. Suppose if I have an html document named Table.html which
contains
> a table will cells having HREF to another document which also contains a
> table, I should be first able to obtain the HREF and then the table
content.
> I am not able to find out a way to obtain a parser object from the
> HTMLEditorKit. Can some one please post a code snippet of parsing the HTML
> and obtaining the attribute value of any HREF which can specified from the
> command line. Something like
>
> java TestParser Table.html HREF
>
> should read the Table.html file and the output on the console has to be
the
> value of HREF
>
> Thanks,
> Kalyan
>
>
>
>
>
>
>
>
> This message is confidential and may also be legally privileged. If you
are not the intended recipient, please notify us immediately. You should not
copy it or use it for any purpose, nor disclose it's contents to any other
person. The views and opinions expressed in this e-mail message are the
author's own and may not reflect the views and opinions of Wilco
International.
>
> _______________________________________________
> Htmlparser-user mailing list
> Htm...@li...
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|