Re: [Htmlparser-user] Doubt Questions.
Brought to you by:
derrickoswald
From: Derrick O. <der...@ro...> - 2007-04-05 12:13:29
|
1) Use a TagNameFilter with "IMG" as the value in a call to parser.parse(filter); See the javadocs for the Parser class. 2) Current versions of the parser take the HTML as a parameter to the Parser constructor as in: new Parser ("<html>...") If it doesn't start with http or https it assumes it's text to be parsed. ----- Original Message ---- From: Gaurav Pranay <gau...@gm...> To: htm...@li... Sent: Thursday, April 5, 2007 1:27:25 AM Subject: [Htmlparser-user] Doubt Questions. Hello Sir/Madam, I have doubts regarding the use of HtmlParsers. Q:1) How to use the HtmlParser with my java program to extract the <img tag & the associated String data with it in any html content derived from any web-page?. Q:2) How to use the Parser for getting the valid String content from the html content in string form rather than giving the URL to the Parser?. Your Help in this context will be highly appreciated. Thanks & Regards. Gaurav ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |