How to add AsyncTask in Parsing XML with SAXParser?
<p><em>> I need to add an AsyncTask with this because its not working on API LEVEL 10-15., or Gingerbread to ICS. tried to add but I dont have any success. 
    public class GBXMLParser extends Activity {
    /</em>* Create Object For SiteList Class <em>/
    SiteList sitesList = null;
    /</em>* Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);</p>

<pre><code>    /** Create a new layout to display the view */
    LinearLayout layout = new LinearLayout(this);
    layout.setOrientation(1);
    /** Set the layout view to display */
    this.setContentView(layout);

    /** Create a new TextView array to display the results */
    TextView name[];
    TextView website[];
    TextView category[];

    try {
        /** Handling XML */
        SAXParserFactory spf = SAXParserFactory.newInstance();
        SAXParser sp = spf.newSAXParser();
        XMLReader xr = sp.getXMLReader();

        /** Send URL to parse XML Tags */
        URL sourceUrl = new URL("http://url.xml");

        /** Create handler to handle XML Tags ( extends DefaultHandler ) */
        MyXMLHandler myXMLHandler = new MyXMLHandler();
        xr.setContentHandler(myXMLHandler);
        xr.parse(new InputSource(sourceUrl.openStream()));
    } catch (Exception e) {
        System.out.println("XML Pasing Excpetion = " + e);
    }

    /** Get result from MyXMLHandler SitlesList Object */
    sitesList = MyXMLHandler.sitesList;

    /** Assign TextView array length by arrayList size */
    name = new TextView[sitesList.getName().size()];
    website = new TextView[sitesList.getName().size()];
    category = new TextView[sitesList.getName().size()];

    /** Set the result text in TextView and add it to layout */
    for (int i = 0; i &lt; sitesList.getName().size(); i++) {
        name[i] = new TextView(this);
        name[i].setText("Name = " + sitesList.getName().get(i));
        website[i] = new TextView(this);
        website[i].setText("Website = " + sitesList.getWebsite().get(i));
        category[i] = new TextView(this);
        category[i].setText("Website Category = "
                + sitesList.getCategory().get(i));
        layout.addView(name[i]);
        layout.addView(website[i]);
        layout.addView(category[i]);
    }
}
</code></pre>

<p>}*</p>
