Thread: [Htmlparser-user] Help
Brought to you by:
derrickoswald
From: abhishek m. <mis...@gm...> - 2006-03-24 00:57:55
|
Hi All, I needed to use this parser in a event driven way. I was wondering how can we parse a string and render it using swt ( sort of my own stripped down browser). All i needed was a text to token matching which is sequential. I don't know if someone can help me with this. I will be really greatful. Thanks, Abhi |
From: <zho...@si...> - 2011-10-03 13:37:27
|
Hello, There is a scentence "Although some example programs are provided that may be useful as they stand..." on HTML Parser home page.But I can't find the example programs in the Web site HTML Parser.Could you send a link or the examples' src to me? Thank you very much. I'm a Chinese student and my English is poor, if there is something wrong in my email, please forgive me.I will try my best to improve my English. I think HTML Parser is greate, she gives me so much help.Thank you very much again. Zhou Yang Oct 3 2011 |
From: Derrick O. <der...@gm...> - 2011-10-03 19:00:44
|
Just check for: public void main (String[] args) signatures in the source code. 2011/10/3 <zho...@si...> > Hello, > > There is a scentence "Although some example programs are provided that > may be useful as they stand..." on HTML Parser home page.But I can't > find the example programs in the Web site HTML Parser.Could you send a link > or the examples' src to me? Thank you very much. > > I'm a Chinese student and my English is poor, if there is something > wrong in my email, please forgive me.I will try my best to improve my > English. > > I think HTML Parser is greate, she gives me so much help.Thank you very > much again. > > Zhou Yang > > Oct 3 2011 > > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > |
From: Asutosh P. <as...@gm...> - 2011-10-04 05:32:37
|
Hi, zhouyang I don't know what is your requirement,but i used HTML parser to get the body content of a html file the code sample is down there ...Hope it will help you.... ****************************************************************** public static String getBodyOfResumeAsText(String path) { final String METHOD_NAME = "getBodyOfResumeAsText :"; String plainText = ""; NodeFilter filter = null; Parser parser = null; try { parser = new Parser(path); filter = new TagNameFilter ("body"); plainText = parser.parse(filter).asString(); plainText = plainText.replaceAll("\\r\\n|\\r|\\n|\\s|\\s+", " "); plainText = plainText.replaceAll(" {2,}", " "); logger.debug(CLASS_NAME + METHOD_NAME + ":generating plainText for :" + path); logger.debug(CLASS_NAME + METHOD_NAME + ":plainText :" + plainText); } catch (Exception e) { e.printStackTrace(); } return plainText; } ****************************************************************** 2011/10/3 <zho...@si...> > Hello, > > There is a scentence "Although some example programs are provided that > may be useful as they stand..." on HTML Parser home page.But I can't > find the example programs in the Web site HTML Parser.Could you send a link > or the examples' src to me? Thank you very much. > > I'm a Chinese student and my English is poor, if there is something > wrong in my email, please forgive me.I will try my best to improve my > English. > > I think HTML Parser is greate, she gives me so much help.Thank you very > much again. > > Zhou Yang > > Oct 3 2011 > > > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2dcopy1 > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > Thanks & Regards Asutosh . |