List of usage examples for org.apache.commons.digester.rss Channel getTitle
public String getTitle()
From source file:com.liusoft.dlog4j.xml.RSSFetcher.java
/** * @param args/*from www . j a v a2 s . c o m*/ * @throws Exception */ public static void main(String[] args) throws Exception { Channel ch1 = fetchChannelViaHTTP("http://unruledboy.cnblogs.com/Rss.aspx"); System.out.println(ch1.getTitle()); for (int i = 0; i < ch1.getItems().length; i++) { ChannelItem item = (ChannelItem) ch1.getItems()[i]; System.out.println(item.getDescription()); } }