Code example for SAXException

Methods: toString

0
			xr.parse(new InputSource(is));
			 
		} catch (IOException e) {
			Log.e("NewsDroid", e.toString());
		} catch (SAXException e) {
			Log.e("NewsDroid", e.toString());
		} catch (ParserConfigurationException e) {
			Log.e("NewsDroid", e.toString());
		} 
	} 
 
	public void updateArticles(Context ctx, Feed feed) {
		try { 
			targetFlag = TARGET_ARTICLES;
			//feedDB = FeedsDB.getInstance(ctx); 
			currentFeed = feed;
 
			SAXParserFactory spf = SAXParserFactory.newInstance();
			SAXParser sp = spf.newSAXParser();
			XMLReader xr = sp.getXMLReader();
			xr.setContentHandler(this);