@@ -0,0 +1,2049 @@
+package com.utils;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.xml.sax.Attributes;%0Aimport org.xml.sax.SAXException;%0Aimport org.xml.sax.helpers.DefaultHandler;%0A%0Aimport com.models.RssItems;%0A%0Apublic class RssHandler extends DefaultHandler%7B%0A%09%0A%09public static final String ITEMS=%22item%22;%0A%09public static final String TITLE=%22title%22;%0A%09public static final String DESCIPTION=%22description%22;%0A%09public static final String DATE=%22pubDate%22;%0A%09public static final String LINK=%22link%22;%0A%0A%09private RssItems item;%0A%09private List%3CRssItems%3E listitem=new ArrayList%3CRssItems%3E();%0A%09private boolean check=false;%0A%09private StringBuilder sbuider=new StringBuilder();%0A%09%0A%09@Override%0A%09public void characters(char%5B%5D ch, int start, int length)%0A%09%09%09throws SAXException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09super.characters(ch, start, length);%0A%09%09if(check && (sbuider!=null))%0A%09%09%7B%0A%09%09%09sbuider.append(ch,start,length);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public void endElement(String uri, String localName, String qName)%0A%09%09%09throws SAXException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09super.endElement(uri, localName, qName);%0A%09%09if(localName.equalsIgnoreCase(ITEMS))%0A%09%09%7B%0A%09%09%09listitem.add(item);%0A%09%09%09%0A%09%09%7Delse if(check)%0A%09%09%09%7B%0A%09%09%09  if(localName.equalsIgnoreCase(TITLE))%0A%09%09%09  %7B%0A%09%09%09%09  item.setTitle(sbuider.toString().trim());%0A%09%09%09  %7D%0A%09%09%09  else if(localName.equalsIgnoreCase(DESCIPTION))%0A%09%09%09  %7B%0A%09%09%09%09  item.setDesciptions(sbuider.toString().trim());%0A%09%09%09  %7D%0A%09%09%09  else if(localName.equalsIgnoreCase(DATE))%0A%09%09%09  %7B%0A%09%09%09%09  item.setDate(sbuider.toString().trim());%0A%09%09%09  %7D%0A%09%09%09  else if(localName.equalsIgnoreCase(LINK))%0A%09%09%09  %7B%0A%09%09%09%09  item.setLink(sbuider.toString().trim());%0A%09%09%09  %7D%0A%09%09%09  sbuider=new StringBuilder();%0A%09%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public void startElement(String uri, String localName, String qName,%0A%09%09%09Attributes attributes) throws SAXException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09super.startElement(uri, localName, qName, attributes);%0A%09%09%0A%09%09if(localName.equalsIgnoreCase(ITEMS))%0A%09%09%7B%0A%09%09%09item=new RssItems();%0A%09%09%09check=true;%09%0A%09%09%7D%0A%0A%09%7D%0A%0A%09public List%3CRssItems%3E getListitem() %7B%0A%09%09return listitem;%0A%09%7D%0A%0A%09%0A%7D%0A

Create RssHandler.java