您现在的位置是:首页
>
坚持学以致用 学以致用:写一个属于自己的Rss
学以致用:写一个属于自己的R 今天看到系统发来的短消息 采用RSS订阅每个类别最新文档 我查了下资料 发现有个r li j的开源工具可以帮助我们写自己的r 文档 当然 我这里讲的是java的实现

学以致用:写一个属于自己的Rss
今天看到系统发来的短消息 采用RSS订阅每个类别最新文档 我查了下资料 发现有个rsslibj的开源工具可以帮助我们写自己的rss文档 当然 我这里讲的是java的实现 import rsslibj elements Channel; public class Writer { public static void main(String[] args) throws InstantiationException ClassNotFoundException IllegalAccessException { Channel channel=new Channel(); channel setDescription( This is my sample channel ); channel setLink(//localhost/ ); channel setTitle( My Channel ); channel setImage(//localhost/ The Channel Image ); channel setTextInput(//localhost/search Search The Channel Image The Channel Image s ); channel addItem(//localhost/item The First Item covers details on the first item> The First Item ) setDcContributor( Joseph B Ottinger ); channel addItem(//localhost/item The Second Item covers details on the second item The Second Item ) setDcCreator( Jason Bell ); System out println( The feed in RDF: +channel getFeed( rdf )); } } 开始怀疑中文会有问题(老外的软件) 测试了一下居然很好 什么问题也没有 你要是熟悉rss文档格式 很容易编写一个标准的rss的writer出来 lishixinzhi/Article/program/Java/Javascript/201311/25489 很赞哦! (1039)