@@ -0,0 +1,2814 @@
+package com.utils;%0A%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0Aimport java.net.MalformedURLException;%0A%0Aimport java.util.List;%0A%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport javax.xml.parsers.SAXParser;%0Aimport javax.xml.parsers.SAXParserFactory;%0A%0Aimport org.apache.http.HttpEntity;%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0Aimport org.apache.http.util.EntityUtils;%0Aimport org.xml.sax.InputSource;%0Aimport org.xml.sax.SAXException;%0Aimport org.xml.sax.XMLReader;%0A%0Aimport com.models.RssItems;%0A%0Apublic class RssParser %7B%0A%0A%09public List%3CRssItems%3E getListitem(String Link) %0A%09%7B%0A%0A      try%0A      %7B%0A//    %09  URL utl=new URL(Link);%0A//    %09  InputSource source=new InputSource(utl.openStream());%0A//    %09  SAXParserFactory factory=SAXParserFactory.newInstance();%0A//    %09  SAXParser paser=factory.newSAXParser();%0A//    %09  XMLReader reader=paser.getXMLReader();%0A//    %09  RssHandler handeler=new RssHandler();%0A//    %09  reader.setContentHandler(handeler);%0A//%0A//    %09  reader.parse(source);%0A//    %09  return handeler.getListitem();%0A    %09  try %7B%0A    %09%09  %0A              DefaultHttpClient httpclient = new DefaultHttpClient();%0A              %0A              HttpGet httpget = new HttpGet(Link);%0A              HttpResponse response = httpclient.execute(httpget);%0A              HttpEntity entity = response.getEntity();%0A              %0A              SAXParserFactory factory = SAXParserFactory.newInstance();%0A              factory.setValidating(false);%0A              %0A              SAXParser parser = factory.newSAXParser();%0A              XMLReader reader = parser.getXMLReader();%0A              %0A              RssHandler handler = new RssHandler();%0A              reader.setContentHandler(handler);%0A%0A              InputSource inStream = new InputSource();%0A              inStream.setCharacterStream(new StringReader(EntityUtils.toString(entity)));%0A              %0A              reader.parse(inStream);%0A              return handler.getListitem();%0A              %0A          %7D catch (MalformedURLException e) %7B%0A              e.printStackTrace();%0A              // result.setText(%22Cannot connect RSS!%22);%0A              return null;%0A          %7D catch (ParserConfigurationException e) %7B%0A              e.printStackTrace();%0A              // result.setText(%22Cannot connect RSS!%22);%0A              return null;%0A          %7D catch (SAXException e) %7B%0A              e.printStackTrace();%0A              // result.setText(%22Cannot connect RSS!%22);%0A              return null;%0A          %7D catch (IOException e) %7B%0A              e.printStackTrace();%0A              // result.setText(%22Cannot connect RSS!%22);%0A              return null;%0A          %7D%0A      %7D%0A      catch(Exception e)%0A      %7B%0A    %09  e.printStackTrace();%0A    %09  return null;%0A      %7D%0A%09%7D%0A%0A%7D%0A%0A

Create RssParser.java