curn supports several output formats; you can configure one or more output handlers in curn's configuration file. A sample of curn's HTML output is herehere. A sample of curn's plain text output is here. curn supports, and uses internally, the FreeMarker template engine; you can easily generate another output format by writing your own FreeMarker template. In addition, you can write your own output handlers, in Java or in any scripting language supported by the Apache Jakarta Bean Scripting Framework (BSF) or (in Java 6) the javax.script API. See Writing Your Own Output Handler in the curn User's Guide for more details.
<item>
<title>Site update</title>
<link>http://www.theautomatedtester.co.uk/presentations/automated_performance_monitor_and_reporting.htm</link>
<description>
<p>I have put a copy of my Google Test Automation Conference Slides up as well as the video from YouTube. There is also a link to the blog post about the work that David Henderson and I did for the talk.</p>
</description>
</item>
变成
<p>I have put a copy of my Google Test Automation Conference Slides up as well as the video from YouTube. There is also a link to the blog post about the work that David Henderson and I did for the talk.</p>
# 1 楼答案
http://www.clapper.org/software/java/curn/
# 2 楼答案
如果您准备编写一点程序,可以使用SaX或JDOM在模型中填充数据(表示RSS提要中元素的类),然后处理模型以将其输出到HTML。SaX是一个标准API,是事件驱动的。另一方面,JDOM将信息从RSS加载到树结构中
教程:
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX.html
http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html
JDOM主页:http://www.jdom.org/
# 3 楼答案
您需要解析XML/RSS,以便找到所需的项目,然后用html解码描述,以便下面的RSS项目变成
变成
可以在浏览器中渲染的
问题更改后编辑
http://java-source.net/open-source/rss-rdf-tools http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/
# 4 楼答案
您可以使用XSLT或任何java XML解析器编写自己的HTML。像RssParser
另见SO处的问题: How to write an RSS feed with Java?
# 5 楼答案
您可以使用CSS直接格式化RSS提要的XML,也可以应用XML和XSLT将RSS转换为(X)HTML
以下页面是一个很好的起点: