由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Java HTMLEditorKit 中取得html的text?
相关主题
Java.Net初学: 我的简单问题, 寻求简单方案Do you guys use lex to parsing input?
JavaCC/SableCC/otherCC ?[转载] 下载问题,请帮忙
Java XML parser的问题 可以用Java 做机器人吗?
Question about tabJAVA URL question, help
[转载] a question on XML parserJQuery
can someone recommend an html parser lib?[ZT] choose your java xml parser
关于Runtime.getRuntime().exec的问题java and javascript 问题请教,有包子
xml to PDF的packageCore Java2 Notes (2)
相关话题的讨论汇总
话题: html话题: file话题: java
进入Java版参与讨论
1 (共1页)
l********r
发帖数: 140
1
Hi,
I am using HTMLEditorKit trying to parse a html.
My purpose is to get the text content of a HTML file, and also the URLs
in this HTML file. But how can I do it?
I saw a demo file looks like (where r is the html file):
HTMLEditorKit.Parser parser;
System.out.println("About to parse " + spec);
parser = new ParserDelegator();
parser.parse(r, new HTMLParseLister(), true);
The above code output everything to screen. I think I should replace
the "new HTMLParseLister
1 (共1页)
进入Java版参与讨论
相关主题
Core Java2 Notes (2)[转载] a question on XML parser
Re: [转载] Re: why do u use XML?can someone recommend an html parser lib?
Re: (I mean in java)Re: Help! Anyone have the experience extracting te关于Runtime.getRuntime().exec的问题
Configuration File reading.. xml?xml to PDF的package
Java.Net初学: 我的简单问题, 寻求简单方案Do you guys use lex to parsing input?
JavaCC/SableCC/otherCC ?[转载] 下载问题,请帮忙
Java XML parser的问题 可以用Java 做机器人吗?
Question about tabJAVA URL question, help
相关话题的讨论汇总
话题: html话题: file话题: java