Back to project page AURHelperDroid.
The source code is released under:
Apache License
If you think the Android project AURHelperDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.stomachion.aurhelperdroid.parser; /*from ww w.j a v a 2 s . c o m*/ import com.stomachion.aurhelperdroid.logic.NewsItem; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import java.util.ArrayList; /** * User: Pedro Veloso */ public final class MainRssParser { public static ArrayList<NewsItem> parseURL(String urlToParse) throws Exception { SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser saxParser = factory.newSAXParser(); // SAXparser handler RssNewsHandler handler = new RssNewsHandler(); saxParser.parse(urlToParse, handler); return handler.getItems(); } }