SAX RSS FEED parser
<p>I am trying to parse a RSS feed using SAX parser</p>

<p>This is my code: </p>

<pre><code>public class MainActivity extends Activity {
    ArrayList&lt;ArrayList&lt;String&gt;&gt; data = new ArrayList&lt;ArrayList&lt;String&gt;&gt;();
    ListView list;
    ArrayList&lt;String&gt; sinlgeItem = null;
    ProgressDialog pd;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        list=(ListView)findViewById(R.id.list);
        boolean b=parseData();
        Log.v("result", "value"+b);
        for(int i=0;i&lt;data.size();i++){
            Log.e("ITEM",data.get(i).get(0)+"__"+data.get(i).get(1));
        }
    }
    /**
     * method parse the data
     */
    private boolean parseData() {
        try {
            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp = spf.newSAXParser();
            XMLReader xr = sp.getXMLReader();
            URL url = new URL("https://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/newreleases/sf=143441/limit=25/rss.xml");
            xr.setContentHandler(new MyHandler());
            xr.parse(new InputSource(url.openStream()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return true;
    }

    public class MyHandler extends DefaultHandler{
        Boolean ITEM=false;
        @Override
        public void characters(char[] ch, int start, int length) throws SAXException {
            super.characters(ch, start, length);
        }
        @Override
        public void endElement(String uri, String localName, String name) throws SAXException {
            super.endElement(uri, localName, name);
            if (ITEM){
                RootElement root=new RootElement("rss");
                Element chan=root.getChild("channel");
                Element itms=chan.getChild("item");
                Element title=itms.getChild("title");
                Element artist=itms.getChild("http://phobos.apple.com/rss/1.0/modules/itms/", "artist");
                title.setEndTextElementListener(new EndTextElementListener() {
                    public void end(String body) {
                        sinlgeItem.add(body);
                        Log.v("title",body);
                    }
                 });
                 artist.setEndTextElementListener(new EndTextElementListener() {
                     public void end(String body) {
                         sinlgeItem.add(body);
                         Log.v("artist", body);
                     }
                 });
                 ITEM=false;
                 data.add(sinlgeItem);
             }
         }

         @Override
    public void startDocument() throws SAXException {
        super.startDocument();

    }

    @Override
    public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException {
             super.startElement(uri, localName, name, attributes);
             if (localName.equals("item")){
                 sinlgeItem = new ArrayList&lt;String&gt;();
                 ITEM=true;
             }
         }
     }
}
</code></pre>

<p>This is the link to the xml feed
<a href="https://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/newreleases/sf=143441/limit=25/rss.xml" rel="nofollow">https://itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/newreleases/sf=143441/limit=25/rss.xml</a></p>

<p>I am trying to parse the title element with in the item tag and the element <code>itms:artist</code> with in the item tag.<br>
I don't know how to handle tags with name spaces</p>
