Code example for ParserConfigurationException

Methods: printStackTracetoString

0
			DocumentBuilder builder = factory.newDocumentBuilder();
			 
			mDoc = builder.parse(new InputSource(new StringReader(xml)));
			 
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
			Log.e(TAG, "Failed parsing backup file.");
			Log.e(TAG, e.toString());
		} catch (SAXException e) {
			e.printStackTrace();
			Log.e(TAG, "Failed parsing backup file.");
			Log.e(TAG, e.toString());
		} catch (IOException e) {
			e.printStackTrace();
			Log.e(TAG, "Failed reading backup file from SD card.");
			Log.e(TAG, e.toString());
		} finally { 
			if (mDoc == null) {
				 
			} else { 
Stop searching for code, let great code find you!  Add Codota to your java IDE