stop to go on onPostExecute() if parsing exception onpreexecute() occurs
<p>am using asynchronous task for hitting the web service url and retrieve the result from server but some time in onPreExecute() method if parsing exception occurs i handle it on catch() method,now i want to Halt the processing next means execution not go to OnpostExecute() method ,so how to stop execution process for going it to OnPostExecute()
my code are below </p>

<pre><code>    @Override
     protected void onPreExecute() {
             dialog = new ProgressDialog(MainMenu.this);
             dialog.setMessage("Processing...");
             dialog.setIndeterminate(true);
             dialog.setCancelable(false);
             dialog.show();
    }
    @Override
    protected void onPostExecute(final Boolean success) {

            if (dialog.isShowing())
            {
            dialog.dismiss();
            }
             Intent i = new Intent(MainMenu.this, filterpagetabs.class);
                 startActivity(i);



    }
        @Override
    protected Boolean doInBackground(final String... args) {
        try{    
            try {
                SAXParserFactory spf = SAXParserFactory.newInstance();
                SAXParser sp = spf.newSAXParser();
                XMLReader xr = sp.getXMLReader();
                URL sourceUrl = new URL(
                        "http://www.mobi/iphonejh/output.php?estado=1");
                MyXMLHandler myXMLHandler = new MyXMLHandler();
                xr.setContentHandler(myXMLHandler);
                xr.parse(new InputSource(sourceUrl.openStream()));


            } catch (Exception e) {
                System.out.println("XML Pasing Excpetion = " + e);



            }
</code></pre>

<p>}</p>
