Code example for CharArrayReader

0
SAXParserFactory spf = SAXParserFactory.newInstance();
			SAXParser sp = spf.newSAXParser();
			XMLReader xr = sp.getXMLReader();
			xr.setContentHandler(this);
			CharArrayReader carr = new CharArrayReader(xml.toCharArray());
			xr.parse(new InputSource(carr));
			return status;
		} 
		catch (IOException e)
		{ 
			Log.e("ShowDataXMLParser", e.toString());
			return -1; 
		} 
		catch (SAXException e)
		{ 
			Log.e("ShowDataXMLParser", e.toString());
			return -1; 
		} 
		catch (ParserConfigurationException e)
Stop searching for code, let great code find you!  Add Codota to your java IDE