[Htmlparser-user] HTML Parsing
Brought to you by:
derrickoswald
From: Kalyan K. M. <mk...@wi...> - 2002-03-11 10:51:55
|
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. |