Re: [Htmlparser-user] Trying to parse a stored html
Brought to you by:
derrickoswald
From: Madhur K. T. <mad...@gm...> - 2007-07-27 05:33:58
|
Yes you can. have a look at the Parser <http://htmlparser.sourceforge.net/javadoc/org/htmlparser/Parser.html> class in HTMLParser - particularly the ctor Parser(String resource) <http://htmlparser.sourceforge.net/javadoc/org/htmlparser/Parser.html#Parser%28java.lang.String%29> - which allows you to create a parser for any resource. You can also have a look at the sample programs <http://htmlparser.sourceforge.net/samples.html>. Most of them work on URLs, but the Parser sample might be of interest ot you. HTH. Adam Dallis wrote: > Hi all, > > I am trying from my java program to parse an HTML file, but I was > wondering if I could use HTML parser to do that? if yes can you please > guide me to the right direction because to me it seems that it only > works with URLs. > > Thank you for your time > > Adam > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > -- Madhur Kumar Tanwani <http://madhurtanwani.googlepages.com> Gebo <http://feeds.feedburner.com/%7Er/Gebo/%7E6/1> **************************************************************** * Knowledge is of two kinds : * We know a subject ourselves, or * We know where we can find information on it * -- Samuel Johnson **************************************************************** |