I'm getting very curious to save news from web. and i get suggestion from my friend, Sigit Adi Nugroho. He said we can get news content from rss. In rss we can get the link to news. then we grab news address and save to file .htm. I searching to many tutorial, finally i get the code from www.java2s.com . This code below will read rss and saving rss to file .txt then get link from there for grabbing and saving to html file.
I will waiting your comment for this code. Thanks u very much.
I will waiting your comment for this code. Thanks u very much.
/**
*
* @author Zidny
*/
import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.io.BufferedReader;
*
* @author Zidny
*/
import com.sun.syndication.feed.synd.*;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import java.io.BufferedReader;